hg equivalent of git stash

anatoly techtonik techtonik at gmail.com
Mon Dec 12 15:40:11 CST 2011


On Mon, Dec 12, 2011 at 8:47 PM, Masklinn <masklinn at masklinn.net> wrote:

> On 2011-12-12, at 18:09 , anatoly techtonik wrote:
> > I am puzzled. After 'hg qref -X .', 'hg qdiff' and 'hg diff' show the
> same
> > info. Did I break something?
> `hg qref -X` removes everything from the MQ patch, so you now have:
> * A working copy in its original (dirty) state
> * A completely empty applied MQ patch
>
> It's perfectly normal that qdiff and diff show the same output, as qdiff
> is the sum of the current mq patch and the current working copy diff. If
> the patch is empty, it is the same thing as a direct diff.
>

It appears that misunderstood `hg qdiff` command from the moment I first
used it (and it was a while since then). =) I thought it is used to show
the contents of current patch. So basically there is no API to see the
contents of the current patch - you should mess with .hg directory
manually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20111213/b2f778dc/attachment.html>


More information about the Mercurial mailing list