tested hg-git push and pull named branches to git repository

Uwe Brauer oub at mat.ucm.es
Sun Jul 21 08:41:54 UTC 2024


>>> "UBvM" == Uwe Brauer via Mercurial <mercurial at lists.mercurial-scm.org> writes:

> Hi all

> I run a test, on the named branch feature in hg-git.

> The repository is available:
> git at gitlab.com:kalthad/hggit-dan-branches.git

> So, you can check it for yourself. 

> Conclusion: import commits on git branches (branch was created by HG)
>   - If the branches are *created* by HG, with commits and then pushed
>   - If the repository is then cloned by git.
>   - If commits are added to the different branches and then pushed
>   - If hg pulls, and the commits end up on the *correct* named branch.
>   - The problem seems to be if the branches have been *created by git*.


I did more testing: I renamed a branch in git.

Basically then you need to reclone the git repository and it seems to me that when you import the using named branches, gives you better results than topics.



-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5684 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20240721/cfd97122/attachment.p7s>


More information about the Mercurial mailing list