diff -r c0b1a0c72c7d -r 3a2fc90d27d6 mercurial/patch.py --- a/mercurial/patch.py Mon Nov 20 19:32:36 2006 -0200 +++ b/mercurial/patch.py Mon Nov 20 19:32:37 2006 -0200 @@ -516,7 +516,7 @@ src = repo.dirstate.copied(f) parent = repo.dirstate.parents()[0] if src: - f = src[0] + f = src of = renamedbetween(f, node1, parent) if of: return of