# HG changeset patch # User Matt Mackall # Date 1242325240 18000 # Node ID d7a77ad9bccec3537688a1e8628f8e6fe3b630ca # Parent 475552c034969d54f7c15115e83b630f90812555 patch: copy copies dict before changing it (issue1651) diff -r 475552c03496 -r d7a77ad9bcce 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