problem with mq extension

Brendan Cully brendan at kublai.com
Tue Dec 13 23:01:52 UTC 2011


On Tuesday, 13 December 2011 at 23:57, Chen XI wrote:
> In general, the topmost patch is not updated by command "qnew" or
> "qrefresh" when modification occurs. The scenario is very simple. I paste
> the command and output here.
> --------------------
> xc1427 at xc1427-laptop:~/mercurial_practice$ hg init test
> xc1427 at xc1427-laptop:~/mercurial_practice$ cd test
> xc1427 at xc1427-laptop:~/mercurial_practice/test$ hg init --mq
> xc1427 at xc1427-laptop:~/mercurial_practice/test$ echo "blabla" > file
> xc1427 at xc1427-laptop:~/mercurial_practice/test$ hg qnew firstpatch
> xc1427 at xc1427-laptop:~/mercurial_practice/test$ hg status
> ? file
> xc1427 at xc1427-laptop:~/mercurial_practice/test$ hg log -r tip -p
> changeset:   0:160396a1b860
> tag:         firstpatch
> tag:         qbase
> tag:         qtip
> tag:         tip
> user:        XI Chen <chen.xi at telecom-bretagne.eu>
> date:        Tue Dec 13 23:45:19 2011 +0100
> summary:     [mq]: firstpatch
> --------------------
> 
> I think that normally "hg status" will display nothing since changes has
> been committed by "hg qnew firstpatch". What's more, "hg log -r tip -p"
> tells that nothing is added to the patch file.
> 
> Does anybody know what's wrong with MQ ?

Nothing has been added to the repository or the patch. You're missing
'hg add file' before qnew (or qrefresh).



More information about the Mercurial mailing list