patch: copy copies dict before changing it (issue1651)
authorMatt Mackall <mpm@selenic.com>
Thu, 14 May 2009 13:20:40 -0500
changeset 8396 d7a77ad9bcce
parent 8395 475552c03496
child 8397 613ac2856535
patch: copy copies dict before changing it (issue1651)
mercurial/patch.py
--- a/mercurial/patch.py	Thu May 14 13:20:40 2009 -0500
+++ b/mercurial/patch.py	Thu May 14 13:20:40 2009 -0500
@@ -1236,6 +1236,7 @@
 
     if opts.git:
         copy, diverge = copies.copies(repo, ctx1, ctx2, repo[nullid])
+        copy = copy.copy()
         for k, v in copy.items():
             copy[v] = k