On 5/3/2013 12:20 AM, Dirkjan Ochtman wrote:
On Fri, May 3, 2013 at 8:43 AM, Ehsan Akhgari <ehsan.akhg...@gmail.com> wrote:
In git, the only way to have something in your history is for it to be
reachable by a ref (for example, a branch name). When you convert an hg
repo with a multi-headed branch to git, you can only choose to represent one
of those heads by a branch name, and the other head will be left stranded,
which means that it cannot be used normally (for example you cannot push it
when you push your branch somewhere) and git gc will remove it from your
repository since it thinks that it's an unneeded commit.
It seems like a hg bookmark could be used to keep a pointer to the
separate heads. This should create the refs you need when using
hg-git. (FWIW, I fully agree that keeping two anonymous heads is
probably a bad idea.)
I was about to say the same thing. Bookmarks are how this should be
done. hg-git converts bookmarks to and from Git branches.
Also, if the hg-git tool isn't satisfying our needs, we can always
modify hg-git.
http://mercurial.selenic.com/wiki/Bookmarks/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform