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

Uwe Brauer oub at mat.ucm.es
Tue Feb 28 08:31:25 UTC 2023


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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20230228/2148880e/attachment.p7s>


More information about the Mercurial mailing list