tla undo/redo like functionality for hg

Stefan Reichör stefan at xsteve.at
Tue Nov 28 07:18:46 UTC 2006


Hi!

One very useful of GNU Arch is that I can undo all current changes
and store them in a directory.

Later I can redo that saved changes.


How can I do that with hg?

I could start like this:

% hg diff --git > changeset.diff
% hg revert --no-backup

...

How can I redo now my changes?
% hg import changeset.diff 
That command will commit the changes. Is there a way to apply the
changes without committing?


Or is there something else I should consider for that kind of
functionality (I don't want to add these changes as branch to the
repository, so I think mq will not work in this case).



Stefan.




More information about the Mercurial-devel mailing list