[PATCH 2 of 4 V2] shelve: add a shelve extension to save/restore working changes

David Soria Parra dsp at experimentalworks.net
Wed Oct 2 07:52:53 UTC 2013


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.

Hope that helps.

David




More information about the Mercurial-devel mailing list