> On Sun, Mar 26, 2023 at 3:13 AM Uwe Brauer <
o...@mat.ucm.es> wrote:
> That patch is interesting. If you specify the template as
> `refs/heads/branches/{branch}` then git-remote-hg will know how these
> branches are meant to be pushed.
> There's a mistake there:
> git push my-mercurial-remote feature:branches/feature
> git push my-mercurial-remote stable:branches/stable
This is an issue I have to understand: which git branch to push first.
I usually do the following.
1. I clone a git repository (say auctex) with hg-git,
2. then all git branches are imported as g bookmarks
3. Hg bookmark tells me where in the graph the bookmarks are
located.
4. I then, using your plugin push the gitbranches first that look
the oldest in the graph.
Is this sensible or what should be the criterion?
> The order should be the other way around, otherwise the commits in
> both branches will appear to be on the "feature" branch in Mercurial,
> when they should be in "stable".
> I see the git repository you generated doesn't have this problem, so
> you didn't actually do them in this order.
> And you mentioned this caveat:
> If there was a mirror for Manuel Jacob's patch to specify a template
> for how branches should be imported (rather than exported), then you
> could use "branches/stable" instead of "stable" in your git
> repository, and everything would work.
Unfortunately this patch seems to be forgotten and nobody want even to
merge it into the release branch.
I have another also important question, suppose after pushing the git
branches as named branches to my hg repository, I add a commit to say the
stable branch (it seems that I could push this directly via hg-git to
the remote repository, but maybe one day this does not work, so I would
like to know how to pull first with git and the push to remote)
1. I add a new commit to the stable branch, how to I pull that?
git checkout stable
git pull my-mercurial-remote stable
or
git pull my-mercurial-remote branches/stable
Regards