how to ammend a changeset and push

Uwe Brauer oub at mat.ucm.es
Fri Oct 18 09:03:47 UTC 2024


Hi 

Here is my supposed workflow (for a fork in github)

    - Fork the repository

    - clone it to you machine

    - commit a change on a new branch (bookmark)

    - push

    - changes that are suggested by the maintainer should be done by amending the changes to the commit that was already pushed!!!

    - and then push again

I tried that using the latest hg-git vanilla (so no fancy stuff like named branches or topics).
I tried it with or without evolve, for example without evolve something like
hg commit -m "matlab-mode: update url to github, modify list of files" --amend 

But then the push command returned

hg push
pushing to git+ssh://git@github.com:ouboub/melpa-matlab.git
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
searching for changes
abort: unknown revision 'd7fc2eeb5a0aede72bb7f221d901656822a98c24'


I cannot use hg histedit because the changeset is already public.


Any idea how to do this?

Or is this beyond hg-git?

Regards

Uwe 



-- 
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/20241018/1efe95f8/attachment.p7s>


More information about the Mercurial mailing list