tla undo/redo like functionality for hg

Benoit Boissinot bboissin at gmail.com
Tue Nov 28 14:44:00 UTC 2006


On 11/28/06, Stefan Reichör <stefan at xsteve.at> wrote:
>
> When changeset.diff is applied, I see it in the normal hg log output.
> That is nice. When I run hg qpop, it is no longer on the hg log
> output. That is also what I want.
> I also looked in the .hg directory and the patch dissappears from the
> .hg/data/a.txt.i file and from the .hg/00changelog.i and
> .hg/00manifest.i files.
>
> So every trace from that patch disappears from the repository. That is
> what i have requested!
>
> The remaining question is, how is that behaviour handled in hg?
> When I look at the log output that contains changeset 1:3149856f4f18
> it seems that the patch was committed to the repository.
>
Yes the patch was commited in hg (and .hg/patches/status updated to reflect it)

> After running qpop, the patch is gone from the repository. So it looks
> like an uncommit operation. Is that correct?

Yes, it strips the revision from the repo.
>
> The main reason for that question is, that an uncommit is
> difficult/impossible in e.g. svn or Gnu Arch. So I thought that the
> changeset 1:3149856f4f18 is still stored somewhere in the repository.
>

It's nowhere in the repository (except under mq directory .hg/patches)


Cheers,

Benoit




More information about the Mercurial-devel mailing list