graft/rebase without changing the hash

Uwe Brauer oub at mat.ucm.es
Sat Nov 26 06:50:42 UTC 2022


Hi

Is there any possibility to graft/rebase a change set from say the
default branch to another named branch, say main, *without* changing the
hash?

Rationale 

When using the hg-git extension, I prefer to use named branches (say
main or feature) not bookmarks for my workflow,

Now it is possible to export changesets on named branches to git
branches, thanks to one of the following changesets in hg-git (although
they are not merged into the release hg-git branch)


    1. 4b51ff13e8f5

    2. Or 6942fb0a8c9d



However importing commits, pushed by git users and pulled by me, end up on
the default branch with a bookmark.

So I hoped I could graft or rebase those changesets to my named branch (feature)

I can rebase them, (with or without evolve enabled) but the rebased changeset
gets a new hash which means that if I push it, it will confuse git
users.

So I have the feeling that what I am looking for is impossible, right?


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/20221126/54d75a01/attachment.p7s>


More information about the Mercurial mailing list