Comments
Patch
@@ -58,6 +58,17 @@
x -> y
$ hg debugpathcopies 1 0 y
+Copies not including commit changes
+ $ newrepo
+ $ echo x > x
+ $ hg ci -Aqm 'add x'
+ $ hg mv x y
+ $ hg debugpathcopies . .
+ $ hg debugpathcopies . 'wdir()'
+ x -> y
+ $ hg debugpathcopies 'wdir()' .
+ y -> x
+
Copy a file onto another file
$ newrepo
$ echo x > x
@@ -246,7 +246,7 @@
return cm
def _changesetforwardcopies(a, b, match):
- if a.rev() == node.nullrev:
+ if a.rev() in (node.nullrev, b.rev()):
return {}
repo = a.repo()