diff -r ca00ce41a2e8 -r e43fd1623fe1 mercurial/patch.py --- a/mercurial/patch.py Mon Sep 25 22:26:54 2006 -0500 +++ b/mercurial/patch.py Tue Sep 26 13:58:58 2006 +0200 @@ -433,7 +433,7 @@ def read(f): return repo.wread(f) def renamed(f): - src = repo.dirstate.copies.get(f) + src = repo.dirstate.copied(f) parent = repo.dirstate.parents()[0] if src: f = src[0]