hg equivalent of git stash

Angel Ezquerra angel.ezquerra at gmail.com
Mon Dec 12 13:19:26 CST 2011


On Dec 12, 2011 8:10 PM, "Chuck Kirschman" <Chuck.Kirschman at bentley.com>
wrote:
>
> 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

Also, if you don't mind using a GUI tool, both the shelve and the mq
extensions come builtin with TortoiseHg. "Stashing" (called "shelving" in
the mercurial and TortoiseHg jargon) changes is super easy using the
tortoisehg workbench.

Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20111212/91c0a18d/attachment.html>


More information about the Mercurial mailing list