hgext/mq.py
changeset 6801 71e339714586
parent 6648 2519976a998b
child 6802 04503b757935
child 6915 ef14c773b3d6
--- a/hgext/mq.py	Wed Jun 25 14:13:20 2008 -0700
+++ b/hgext/mq.py	Mon Jul 07 09:16:09 2008 +0200
@@ -1106,7 +1106,7 @@
                         f = repo.file(dst)
                         src = f.renamed(man[dst])
                         if src:
-                            copies[src[0]] = copies.get(dst, [])
+                            copies.setdefault(src[0], []).extend(copies.get(dst, []))
                             if dst in a:
                                 copies[src[0]].append(dst)
                         # we can't copy a file created by the patch itself