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

3 views
Skip to first unread message

Uwe Brauer

unread,
Jul 21, 2024, 4:42:00 AM7/21/24
to via hg-git
>>> "UBvM" == Uwe Brauer via Mercurial <merc...@lists.mercurial-scm.org> writes:

> Hi all

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

> The repository is available:
> g...@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.

Reply all
Reply to author
Forward
0 new messages