diff -r bbd89c9e6012 -r 71e339714586 hgext/mq.py --- 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