hg equivalent of git stash
anatoly techtonik
techtonik at gmail.com
Mon Dec 12 17:27:29 UTC 2011
On Mon, Dec 12, 2011 at 7:51 PM, Masklinn <masklinn at masklinn.net> wrote:
> On 2011-12-12, at 17:33 , anatoly techtonik wrote:
> >
> > The whole point of stashing stuff is to restore it later in the same
> form.
> > With 'hg qnew/qpop/qpush` I can't get my changes back. After I do 'hg
> > push', 'hg diff/st' is empty.
> Please read comments in full before saying they're incomplete, the answers
> you're looking for are in the rest of the second paragraph. Read that
> paragraph beyond the first phrase.
>
Sorry. Skimmed over and skipped too many useful letters at the end of the
day. You propose the following to restore the working copy:
> hg qpush
> hg qfinish
abort: no revisions specified
It is not clear which revisions should I (as a user) specify. I understand
that I should commit with 'qfinish' first to be able to do 'hg strip -k'
after.
You may also be interested in the *third* paragraph.
I don't want to spread FUD replying to the 3rd one, and it is not my aim. I
just want to say that a while ago Mercurial the power of different HG
extensions was a huge advantage compared to other VCS. Now that other VCS
also support all the options an average user needs, it is becoming a major
disadvantage of Mercurial that its extensions don't work "by default".
Other extension is not an preferred option. In addition Matt itself
recommended MQ as a better 'git stash' in Mercurial.
Need to move for today. Thanks for all prompt replies. I felt like I was on
IRC. Very supportive. =)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111212/0112097c/attachment-0002.html>
More information about the Mercurial
mailing list