Un-qimport'ing? (i.e. hg qdel tip)
Giorgos Keramidas
keramida at ceid.upatras.gr
Thu Aug 6 18:11:03 UTC 2009
On Thu, 6 Aug 2009 14:50:45 +0200, Hans Meine <meine at informatik.uni-hamburg.de> wrote:
> Hi,
>
> I often use "hg qnew -f foo" to quickly stash away all changes, then
> perform a quick fix, and then want to continue working on my previous
> stuff. Often, I do qpush, but then want to let changes appear as
> modifications again (e.g. in order to use the great crecord command),
> is there a way to do so?
>
> Right now, I can do
> hg qpop
> cd $HG_ROOT
> patch -p1 < .hg/patches/foo
> cd -
> hg qdel foo
Or you can do:
pushd $(hg root)
hg qrefresh -X '**'
hg qpop -f
popd
I often realize I don't want to include *all* the files I just pulled
into a patch, so I qpush the patch, qrefresh with -X '**' and start over
by refreshing into the current patch only the bits I want.
More information about the Mercurial
mailing list