[PATCH 2 of 4 V2] shelve: add a shelve extension to save/restore working changes
Laurens Holst
laurens.nospam at grauw.nl
Wed Oct 2 03:34:48 CDT 2013
Op 02-10-13 09:52, David Soria Parra schreef:
> On 10/02/2013 08:57 AM, harry wrote:
>> David Soria Parra-3 wrote
>>> Storing the shelved change as a bundle also avoids the difficulty
>>> that hidden commits would cause, of making it impossible to amend
>>> the parent if it is a draft commits (a common scenario).
>> I'm interested in this common scenario. I was thinking of writing a shelve
>> extension that used hidden commits, because I've never needed to change a
>> shelf's ancestors during its lifetime.
> A common scenario would be: you edit something but you find a typo in a
> change that you made before. Therefore you shelve your current changes
> and amend the previous commit with then new change and then reapply your
> shelved changes.
Hmm, with evolve, I don’t see a reason why you couldn’t amend an older
changeset?
Just because this functionality is not currently present for amend,
should you really let that influence a core design decision of the
extension?
~Laurens
More information about the Mercurial-devel
mailing list