-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import HG bookmarks to Git branches #61
Comments
I would not oppose such a feature, feel free to submit a patch.
|
👍 Hg bookmarks is the right call here |
not using HG to begin with is the real answer :D damn unnamed heads! |
Here's a workaround to import such a repository. For each unnamed head, or maybe for each bookmark (
This should be done on the HG repository before trying to import it into Git. You need to change something and make a commit for the new branch to be visible. |
You don't need to add a new commit or a new file. You can amend the commit to change the branch it's on: hg update SomeBookmark
hg branch SomeBookmark
hg commit --amend -m "$(hg log -r SomeBookmark --template '{desc}')" The This is a bit cleaner! On the git end it will just look like the branch was always a named branch. |
HG bookmarks are effectively the same thing as Git feature branches, while HG branches are a very different beast, much less useful IMHO.
Therefore it would be useful if fast-export converted HG bookmarks → Git branches, instead of failing with an error:
The text was updated successfully, but these errors were encountered: