[Potential bug] hg qfold folds pending modifications
Derek Yang
yanghada at gmail.com
Thu May 14 05:12:25 CDT 2009
Dear hg creators,
I am seeing a weird behavior in hg qfold.
In summary, when I use hg qfold to fold a patch 2.patch into the current top
patch 1.patch, hg folds everything from 2.patch into 1.patch (this is
correct). But the issue that i am seeing is, if there are any pending
modifications in my working directory, hg will also folds them into
1.patch. This is not what I expect.
Some steps to reproduce this issue:
hg init
echo 'version 1' > file
hg add
hg qnew -m "version 1" -f 1.patch
echo 'version 2' >> file
hg qnew -m "version 2" -f 2.patch
hg qpop
hg qtop
// 1.patch is the top applied patch
echo 'version 3' >> file
hg qfold 2.patch
cat file
// version1
// version2
*// version3*
What I expect to see is:
cat file
// version1
// version2
Is this a real issue or this is by design? Is there any thing that I
misunderstand? :)
Thanks,
Derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090514/164d524f/attachment.htm
More information about the Mercurial
mailing list