##// END OF EJS Templates
patch: copy copies dict before changing it (issue1651)
Matt Mackall -
r8396:d7a77ad9 default
parent child Browse files
Show More
@@ -1236,6 +1236,7 b' def diff(repo, node1=None, node2=None, m'
1236
1236
1237 if opts.git:
1237 if opts.git:
1238 copy, diverge = copies.copies(repo, ctx1, ctx2, repo[nullid])
1238 copy, diverge = copies.copies(repo, ctx1, ctx2, repo[nullid])
1239 copy = copy.copy()
1239 for k, v in copy.items():
1240 for k, v in copy.items():
1240 copy[v] = k
1241 copy[v] = k
1241
1242
General Comments 0
You need to be logged in to leave comments. Login now