|Re: [eigen] Bitbucket is dropping its Mercurial support!|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Bitbucket is dropping its Mercurial support!
- From: Clifford Yapp <cliffyapp@xxxxxxxxx>
- Date: Sun, 25 Aug 2019 15:11:42 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=kdTFWe9XLUCkCDjOSOILfUunn5i2g3MLHSlv33xrK7E=; b=EBI6cCZxhfm0CuBFtOzyN2uIE4K+6mGJBpX5QNllxBMXdX6R6izangLevdmNqM+gSa R8vFFnmv4J6TpRqKpvjD+O+vqcBMV6PHg+2kPBmqbf715Qcm3tgtpdmsEoYo2JOvW/Wa JZrtumjGuU80tQyUxb8xFIBzWGjExBym7JrOA2FrlkltedqyGUZO/iMQOGiz0/S0lxSW YczNhIXoC9rjEruTtmk+nFmYN9WDkCoUkuIZOlOs0gUt1dDdaWJT0eI7JJPxE3I1AiEx lwJ+cplIs5r0XRB3Q8/p0429+cvAnqjVAjP+19rBUsgREsRNjBBnEx3WsCaPiKYgP0Hu 6oig==
A good git import tool would put the mercurial hashes into the commit
messages, so there is at least any chance of finding them.
We're in the process of converting the BRL-CAD repository from SVN to Git, and what we opted to do was use the git notes feature to stash the SVN revision numbers on the old notes as commits. In addition to documenting which git commit corresponds to which SVN revision (so we can make sense of out of older commit references) it turned out to be possible to define a git alias users can put in their git config to check out specific SVN revisions from the git repo. I'd imagine something similar might be possible for an hg to git conversion, assuming sufficient motivation to preserve the information.
I don't know if any of the existing conversion tools do that out of of the box - our conversion case was quite complex, so we ended up (mostly) custom rolling our own solution, but one of the key points that recommends git notes as a storage mechanism for that sort of information is the original commit messages and timestamps are preserved. Using those as keys, it is possible in principle to go back (even after the conversion proper is done) and assign the notes with the hg repository metadata to the commits without otherwise altering the git history.