qrefresh inconsistency when using interactive
Christian Widmer
cwidmer at gmail.com
Wed Feb 12 08:54:20 UTC 2014
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140212/4efe3ad7/attachment-0002.html>
More information about the Mercurial
mailing list