could any other named branch be the default branch or could hg-git import git branches to other named hg branches?

5 views
Skip to first unread message

Uwe Brauer

unread,
Feb 28, 2023, 3:31:34 AM2/28/23
to Mercurial List, via hg-git

Hi

Lately I have to push and pull a lot to git repositories using hg-git
(that is why I also but them into the CC). For my workflow it is best to
rely on topics and use Manuel Jacob's patch that allows to push these
topics into git branches.

The problem is the import. The hg-git plugin imports git branches as
bookmarks into the default branch.

Fortunately I generate most of that repositories and call git's default branch, well default (and not master or main)


However there are still zillions of git repositories that use either main or master as the default branch.

Therefore:

1. Mercurial: is there a way to tell mercurial the default named
branch should be called say main?

2. Hg-git: is it possible to import git branches to other mercurial
named branches, say main or master?

Thanks and regards

Uwe Brauer

--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
Reply all
Reply to author
Forward
0 new messages