Patchwork [Bug,4458] New: Inconsistencies in mq patch queue vs what working directory shows

mail settings
Date Nov. 18, 2014, 6:57 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/6771/
State Not Applicable
Headers show

Comments - Nov. 18, 2014, 6:57 p.m.

          Priority: normal
            Bug ID: 4458
           Summary: Inconsistencies in mq patch queue vs what working
                    directory shows
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.1
         Component: mq
           Product: Mercurial

The following script causes weirdness. Possibly another manifestation of the
infamous linkrev bug.

hg init mq-test
hg init --mq mq-test
cd mq-test
echo foo1 > foo1
hg add foo1
hg qnew test
hg ci --mq -m "add foo1"
echo foo2 > foo2
hg add foo2
hg qref
hg ci --mq -m "add foo2"
hg rm foo1
hg mv foo2 foo1
hg forget foo2
hg revert foo2
hg revert foo1

faheem@orwell:~/mqtestnew/mq-test$ hg st foo1
? foo1
faheem@orwell:~/mqtestnew/mq-test$ hg log foo1
changeset:   0:d05e48dbd1d2
tag:         qbase
tag:         qtip
tag:         test
tag:         tip
user:        Faheem Mitha <>
date:        Tue Nov 18 23:46:28 2014 +0530
summary:     [mq]: test

faheem@orwell:~/mqtestnew/mq-test$ cat .hg/patches/test 
# HG changeset patch
# Parent  0000000000000000000000000000000000000000

faheem@orwell:~/mqtestnew/mq-test$ cat foo1
faheem@orwell:~/mqtestnew/mq-test$ cat foo2


diff -r 000000000000 foo1
--- /dev/null
+++ b/foo1
@@ -0,0 +1,1 @@ 
diff -r 000000000000 foo2
--- /dev/null
+++ b/foo2
@@ -0,0 +1,1 @@