hg equivalent of git stash
Arne Babenhauserheide
arne_bab at web.de
Tue Dec 13 07:35:28 UTC 2011
Am Dienstag, 13. Dezember 2011, 08:08:04 schrieb Masklinn:
> On 13 déc. 2011, at 04:04, Frank Kingswood <frank at kingswood-
consulting.co.uk> wrote:
> > Losing the named patch just to be able to make changes to it seems like
> > a downside of git stash.
> It's not because the purpose of these tools is different. The point of stash
> is exactly what it says, it's a place where you temporarily stash changes
> when you need to do something else. Stash manages interruptions, not
> changes. As a result, not having names is neither a loss nor a bug: they
> would add needless complexity to the simple task of "put this [stuff] away
> for a while". Every diff does not need a name.
How about
hg diff > 1.patch
hg revert .
(work)
hg import --no-commit 1.patch
?
Best wishes,
Arne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111213/2cb02226/attachment.asc>
More information about the Mercurial
mailing list