problem with mq extension

Chen XI xichen1427 at gmail.com
Tue Dec 13 23:08:22 UTC 2011


Commands like "hg add filename" is not necessary, I think, if we already
use Mq to manage the changeset.

For example, refer to the Mq wiki page:
http://mercurial.selenic.com/wiki/MqExtension#Command_Examples
We just use "qnew patchname" or "qrefresh", then changes will be commited.

-- Chen

2011/12/14 Brendan Cully <brendan at kublai.com>

> 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).
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111214/0c09cf77/attachment-0002.html>


More information about the Mercurial mailing list