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

harry voldermort at hotmail.com
Wed Oct 2 03:40:53 CDT 2013


David Soria Parra-3 wrote
> 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.

This should work fine with histedit if the shelf was a hidden commit. Maybe
even better, because you'd be rebasing each change as it occurs, not an
accumulation of potentially many changes when unshelving.



--
View this message in context: http://mercurial.808500.n3.nabble.com/PATCH-0-of-4-V2-shelve-extension-tp4004483p4004515.html
Sent from the Development mailing list archive at Nabble.com.


More information about the Mercurial-devel mailing list