changeset 8396:d7a77ad9bcce

patch: copy copies dict before changing it (issue1651)
author Matt Mackall <mpm@selenic.com>
date Thu, 14 May 2009 13:20:40 -0500
parents 475552c03496
children 613ac2856535
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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