tla undo/redo like functionality for hg

Stefan Reichör stefan at xsteve.at
Tue Nov 28 10:48:23 UTC 2006


"Benoit Boissinot" <bboissin at gmail.com> writes:

>> > But the easiest way is with mq:
>> >
>> > hg qnew -f changeset.diff
>> > hg qpop
>> > hg qpush
>>
>> I have several questions to this suggestion:
>>
>> a) Can I save several changesets (changeset1.diff, changeset2.diff)
>>    and apply them in arbitrary order?
>
> It is a quilt like queue, so the patch order is recorded in
> .hg/patches/series, and if they are unapplied you can reorder them if
> you edit this file.

That is fine.

>> b) Is the patch recorded in the repository? And if yes, can I
>>    delete this patch from the repository.
>>
> Not sure I understand what you mean with "recorded", patches are
> stored in .hg/patches/<patchname>, you can delete them with "hg
> qdelete"

My question is, if such a patch is stored somewhere else in the .hg
directory also.

I would like to delete every trace of this patch in the repository via
hg qdelete. Does this work?


Stefan.




More information about the Mercurial-devel mailing list