##// END OF EJS Templates
copies._forwardcopies: use set operations to find missing files...
Siddharth Agarwal -
r18878:3cfaace0 default
parent child Browse files
Show More
@@ -133,8 +133,10 b' def _forwardcopies(a, b):'
133 133 # we currently don't try to find where old files went, too expensive
134 134 # this means we can miss a case like 'hg rm b; hg cp a b'
135 135 cm = {}
136 for f in b:
137 if f not in a:
136 missing = set(b.manifest().iterkeys())
137 missing.difference_update(a.manifest().iterkeys())
138
139 for f in missing:
138 140 ofctx = _tracefile(b[f], a)
139 141 if ofctx:
140 142 cm[f] = ofctx.path()
General Comments 0
You need to be logged in to leave comments. Login now