howto push uncommited changes to some unapplied patch?
Wagner Bruna
wagner.bruna+mercurial at gmail.com
Fri Dec 4 17:19:46 CST 2009
Hello,
Christian Boos wrote:
> Dilip M wrote:
> (...)
>>> On Tue, Dec 1, 2009 at 11:40 AM, Nicolas Dumazet <nicdumz at gmail.com>
>>> wrote:
>>> (...)
>>>> You can qnew -f to create a new change, reorder the patch series,
>>>> and fold the newly created patch with the target patch?
>>>>
>>>> aka :
>>>> $ hg qser
>>>> before
>>>> target
>>>> after
>>>> $ hg st
>>>> (changes you want into "target")
>>>> $ hg qnew -f will_fold_this
>>>> $ hg qpop
>>>> patch queue now empty
>>>>
>>>> Now reorder the serie to have the patch just after the target:
>>>>
>>>> $ $EDITOR .hg/patches/series
>>>>
>>>> change from:
>>>> will_fold_this
>>>> before
>>>> target
>>>> after
>>>>
>>>> to:
>>>>
>>>> before
>>>> target
>>>> will_fold_this
>>>> after
>
> For such a reorganisation, using qup would be tedious, better keep
> doing it by hand.
> qup is very handy when you just want to make an unapplied patch
> down the queue be the qnext one.
Actually, you can specify more than one patch to qup, and it'll move them together:
$ hg qseries
a
b
c
d
$ hg qup d b a
$ hg qseries
d
b
a
c
Regards,
Wagner
More information about the Mercurial
mailing list