Shelve extension

Bill Barry after.fallout at gmail.com
Mon Feb 23 12:11:30 CST 2009


Ted Pavlic wrote:
>> This is stuff that might work well in the Git philosophy,
>> but given that hg boasts about its newbie-friendliness
>> I think we should seriously contemplate integrating the
>> 'shelve' and 'unshelve' commands into the distribution.
>>     
>
> Isn't "hg shelve" and "hg unshelve" very similar to "git stash"? Git 
> people (who are very excited about their "index") seem to be very proud 
> of "git stash."
>
> So I'd say that Git philosophy would favor "stash", and it would be nice 
> if something similar existed in (default) Mercurial -- maybe like shelve 
> and unshelve.
>
> (personally, in both Git/Mercurial I use StGit/MQ, and so "stashing" and 
> "shelving" seems unnecessary to me, but I fear I may be missing something)
>   
git stash is approximately hg shelve from attic, except that attic 
doesn't have this confusing thing called the "index" (I have been trying 
to understand what exactly it is for a month now and I still feel like 
I've gotten nowhere except further confused) and that attic has 
interactive-per-hunk shelving.

disclaimer: I am the primary author of attic: 
https://bitbucket.org/Bill_Barry/hgattic/

btw, attic works well alongside mq (every usecase I have come up with 
thus far for using attic works equally well on top of or in the middle 
of a queue, save for the one case of folding patches).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090223/28b9ad8a/attachment.htm 


More information about the Mercurial mailing list