[issue1134] qrefresh looses metadata in some specific conditions
Philippe Biondi
mercurial-bugs at selenic.com
Fri May 23 05:50:19 CDT 2008
New submission from Philippe Biondi <phil at secdev.org>:
qrefresh sometimes looses meta-data (like hg copy). It seems to happen when it's
quicker to patch from /dev/null than from the original file. This does not
happen on the last file.
$ hg init
$ echo -e "a\nb\nc\nd\ne" > foo
$ hg add
adding foo
$ hg commit -m 'foo'
$ hg qnew bar
$ hg cp foo foo2
$ hg cp foo foo3
$ vi foo2 # remove some lines
$ vi foo3 # remove some lines
$ hg qdiff
diff --git a/foo b/foo2
copy from foo
copy to foo2
--- a/foo
+++ b/foo2
@@ -1,5 +1,3 @@
a
b
-c
-d
e
diff --git a/foo b/foo3
copy from foo
copy to foo3
--- a/foo
+++ b/foo3
@@ -1,5 +1,3 @@
a
-b
c
d
-e
$ hg qref
$ hg qdiff
diff --git a/foo2 b/foo2
new file mode 100644 <==== here we lost meta data
--- /dev/null
+++ b/foo2
@@ -0,0 +1,3 @@
+a
+b
+e
diff --git a/foo b/foo3
copy from foo
copy to foo3
--- a/foo
+++ b/foo3
@@ -1,5 +1,3 @@
a
-b
c
d
-e
----------
messages: 6080
nosy: phil
priority: bug
status: unread
title: qrefresh looses metadata in some specific conditions
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1134>
____________________________________________________
More information about the Mercurial-devel
mailing list