tla undo/redo like functionality for hg
Benoit Boissinot
bboissin at gmail.com
Tue Nov 28 08:43:30 UTC 2006
On 11/28/06, Stefan Reichör <stefan at xsteve.at> wrote:
> 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?
patch -p1 < changeset.diff ? (this may have problem with git patches)
But the easiest way is with mq:
hg qnew -f changeset.diff
hg qpop
hg qpush
regards,
Benoit
More information about the Mercurial-devel
mailing list