Show More
@@ -246,7 +246,7 b' def _committedforwardcopies(a, b, base, ' | |||||
246 | return cm |
|
246 | return cm | |
247 |
|
247 | |||
248 | def _changesetforwardcopies(a, b, match): |
|
248 | def _changesetforwardcopies(a, b, match): | |
249 |
if a.rev() |
|
249 | if a.rev() in (node.nullrev, b.rev()): | |
250 | return {} |
|
250 | return {} | |
251 |
|
251 | |||
252 | repo = a.repo() |
|
252 | repo = a.repo() |
@@ -58,6 +58,17 b' Test filtering copies by path. We do fil' | |||||
58 | x -> y |
|
58 | x -> y | |
59 | $ hg debugpathcopies 1 0 y |
|
59 | $ hg debugpathcopies 1 0 y | |
60 |
|
60 | |||
|
61 | Copies not including commit changes | |||
|
62 | $ newrepo | |||
|
63 | $ echo x > x | |||
|
64 | $ hg ci -Aqm 'add x' | |||
|
65 | $ hg mv x y | |||
|
66 | $ hg debugpathcopies . . | |||
|
67 | $ hg debugpathcopies . 'wdir()' | |||
|
68 | x -> y | |||
|
69 | $ hg debugpathcopies 'wdir()' . | |||
|
70 | y -> x | |||
|
71 | ||||
61 | Copy a file onto another file |
|
72 | Copy a file onto another file | |
62 | $ newrepo |
|
73 | $ newrepo | |
63 | $ echo x > x |
|
74 | $ echo x > x |
General Comments 0
You need to be logged in to leave comments.
Login now