Hi,
We've just pushed a new release of hg-git to PyPI and Heptapod:
https://pypi.org/project/hg-git/0.10.0/
https://foss.heptapod.net/mercurial/hg-git/-/releases/0.10.0/
--
You received this message because you are subscribed to the Google Groups "hg-git" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hg-git+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hg-git/eb332a00-77a3-5ba4-5a30-c8e380d57b70%40gmail.com.
Hi Dan
I can imagine that pushing named branches or topics is quite useful indeed, but that's not what the change does. It bolts on the ability to export… something. There's no motivation for it; nothing that explains the why rather than the how.
So a good first step would be just elaborating on how you're relying on this. Either on this list, or in an issue describing the use case you're missing.
Till now I had barely time to elaborate it, now I did some testing over the weekend with Manuel's patch and here are my conclusions. In a nutshell:
Here is the longer story
Regards
Uwe
First the right setup
changeset: 1427:acc4280e2ab7 │ Branch: default │ Author: Manuel Jacob <memanueljacob.de> │ Date: Sat, 01 Jun 2019 16:54:53 +0200 │ Topic: export-additional-refs │ Phase: draft │ Summary: git_handler: add mechanism to specify revsets to be exported to Git refs according to a template │
# setting for named branches # tried out export-additional-refs.named-branch-heads:revset = head() and not branch('re:\Adefault\Z') # named branches should not have a prefix export-additional-refs.named-branch-heads:template = refs/heads/{branch} # Manuel Jacobs for pushing default to master: you have to delete the bookmark master export-additional-refs.default_as_master:revset = head() and branch('re:\Adefault\Z') export-additional-refs.default_as_master:template = refs/heads/master use_namespaces = True
HG<–>GitHub<–>HG
The following works:
What works
In order to see the problem we perform a local simplified clone of a real git repository
[receive] denyCurrentBranch = ignore
[receive] denyCurrentBranch = ignore
changeset: 492:2436d6505106 │ Branch: default │ tag: default/testbranch │ tag: tip │ bookmark: testbranch │ Author: Uwe Brauer <oubmat.ucm.es> │ Date: Sun, 18 Apr 2021 17:34:55 +0200 │ Phase: draft │ Summary: Git: commit, tries to contribute to the named branch │ ◍ changeset: 491:a6dce40fa191 │ Branch: testbranch │ Author: Uwe Brauer <oubmat.ucm.es> │ Date: Sun, 18 Apr 2021 17:34:26 +0200 │ Phase: draft │ Summary: Add to the name branch
pushing to /home/oub/HGTest/HG-Git-Test-Patch-Named/Matlab-new/bare/matlab-git searching for changes abort: pushing refs/heads/testbranch overwrites c783a9ea0e13
pushing to /home/oub/HGTest/HG-Git-Test-Patch-Named/Matlab-new/bare/matlab-git searching for changes abort: unknown revision '2436d6505106ff54f59c8a2fa0a7f73a8b70070a'!
changeset: 493:f02743c68c08 │╲ Branch: testbranch │ │ tag: tip │ │ Author: Uwe Brauer <oubmat.ucm.es> │ │ Date: Sun, 18 Apr 2021 17:42:54 +0200 │ │ Phase: draft │ │ Summary: Silly merge │ │ │ ○ changeset: 492:ece53f11267b │╱ Branch: default │ tag: default/testbranch │ bookmark: testbranch │ Author: Uwe Brauer <oubmat.ucm.es> │ Date: Sun, 18 Apr 2021 17:42:33 +0200 │ Phase: draft │ Summary: Git: commit, tries to contribute to the named branch
*commit 4105340764307a844653cee956e33b7ed7bd2eb1 (HEAD -> testbranch) |\ Merge: e72a3d4 20117e9 | | Author: Uwe Brauer <oubmat.ucm.es> | | Date: Sun Apr 18 17:42:54 2021 +0200 | | | | Silly merge | | | | --HG-- | | branch : testbranch | | | * commit 20117e94a6f7204086b33837c4f9e44719ff187c (master) |/ Author: Uwe Brauer <o...@mat.ucm.es> | Date: Sun Apr 18 17:42:33 2021 +0200 | | Git: commit, tries to contribute to the named branch |