diff hgext/mq.py @ 6801:71e339714586

mq: fix qrefresh losing copy information (issue 1134)
author Patrick Mezard <pmezard@gmail.com>
date Mon, 07 Jul 2008 09:16:09 +0200
parents 2519976a998b
children 04503b757935 ef14c773b3d6
line wrap: on
line diff
--- 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