diff -r cc7114d96548 -r 04503b757935 hgext/mq.py --- a/hgext/mq.py Sat Jul 05 14:35:36 2008 +0200 +++ b/hgext/mq.py Mon Jul 07 09:31:32 2008 +0200 @@ -1129,7 +1129,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