[Bug 4168] New: qrefresh inconsistency when using interactive

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Feb 12 02:55:30 CST 2014


http://bz.selenic.com/show_bug.cgi?id=4168

          Priority: normal
            Bug ID: 4168
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: qrefresh inconsistency when using interactive
          Severity: bug
    Classification: Unclassified
                OS: Mac OS
          Reporter: cwidmer at gmail.com
          Hardware: Macintosh
            Status: UNCONFIRMED
           Version: 2.9
         Component: mq
           Product: Mercurial

the doc of qrefresh says that if any file pattern is specified then only those
files are updated (we don't consider -s for now). this works fine as long as
you don't use the interactive mode.

@:> hg st
M file1.txt
M file2.txt
@:> hg status --change qtip
@:> hg qref file1.txt
@:> hg st
M file2.txt
@:> hg status --change qtip
M file1.txt

so far so good. now we try to interactively shelve some hunks of file1.txt 
only

@:> hg st
M file1.txt
M file2.txt
@:> hg status --change qtip
@:> hg qref -i file1.txt
diff --git a/file1.txt b/file1.txt
2 hunks, 4 lines changed
examine changes to 'file1.txt'? [Ynesfdaq?]

@@ -1,5 +1,7 @@
+xxxx1
+xxxx2
 line1
 line2
 line3
 line4
 line5
record change 1/2 to 'file1.txt'? [Ynesfdaq?] y

@@ -1,6 +3,8 @@
 line1
 line2
 line3
 line4
 line5
+yyyy2
+yyyy2

record change 2/2 to 'file1.txt'? [Ynesfdaq?] n

@:> hg st
M file1.txt
@:> hg status --change qtip
M file1.txt
M file2.txt


as you can see file2.txt has been silently added. the interactive mode has as
expected only prompted for file1.txt though.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list