Converting from git loses branch names

David Soria Parra sn_ at gmx.net
Tue Dec 2 15:05:41 CST 2008


> Is this a known problem?  Or perhaps a confusing feature?  Google'ing
> didn't turn up much except someone else noticing the same problem
> converting a git repo of KDE to hg:
No. Git actually has a different notion of a "branch". They are pointers
to commits in the history, but the actual branch information is not stored
in the changesets. In mercurial branch names are assigned to a changeset and
therefore an immutable part of a changeset. If convert would convert the git
branches it would result in immutable branches, which might not be desired.
Therefore, as mercurial doesn't have same way of doing branching as git, 
it is
not 'converted'. So it's expected behaviour

David


More information about the Mercurial mailing list