##// END OF EJS Templates
copies: don't double-detect items in the directory copy check
Matt Mackall -
r6426:e2c49ef2 default
parent child Browse files
Show More
@@ -185,8 +185,9 b' def copies(repo, c1, c2, ca, checkdirs=F'
185 if f.startswith(d):
185 if f.startswith(d):
186 # new file added in a directory that was moved, move it
186 # new file added in a directory that was moved, move it
187 df = dirmove[d] + f[len(d):]
187 df = dirmove[d] + f[len(d):]
188 copy[f] = df
188 if df not in copy:
189 repo.ui.debug(_(" file %s -> %s\n") % (f, copy[f]))
189 copy[f] = df
190 repo.ui.debug(_(" file %s -> %s\n") % (f, copy[f]))
190 break
191 break
191
192
192 return copy, diverge
193 return copy, diverge
General Comments 0
You need to be logged in to leave comments. Login now