hg equivalent of git stash

Chuck Kirschman Chuck.Kirschman at bentley.com
Mon Dec 12 13:09:58 CST 2011


On 12/12/2011 10:15 AM, anatoly techtonik wrote:
> Quoting http://markmail.org/message/lglewvoffuxnffbz
>
> On Jan 12, 2008 3:27:01 pm, Matt Mackall wrote:
>
>     On Sat, 2008-01-12 at 17:13 -0600, Phillip Koebbe wrote:
>
>         I was reading earlier today about "git stash" and was thinking it
>         would be very useful to me. Is something like that available in hg?
>
>     You might be interested in mq, which is about a million times more
>     useful.
>
>
> Among million use cases for mq, can anybody explain the mq equivalent of
> git stash?
>
> My use case: I want to put my current changes away temporarily (into
> stash), do some unrelated changes, commit them and then get my previous
> changes back (removing them from stash). How do I do this with mq?
>
> Please, CC.
> --
> anatoly t.
>
>

I think "hg shelve" and "hg unshelve" are what you're looking for.  It's 
a handy extension that does exactly that.  It's not quite the swiss army 
knife / ball of yarn that MQ is.
http://mercurial.selenic.com/wiki/ShelveExtension

chuck






More information about the Mercurial mailing list