diff -r c2c4fa9af016 -r 833be17000b6 mercurial/patch.py --- a/mercurial/patch.py Sat Apr 12 23:05:51 2008 -0400 +++ b/mercurial/patch.py Fri Apr 11 15:14:00 2008 +0200 @@ -1168,12 +1168,6 @@ if not node1: node1 = repo.dirstate.parents()[0] - ccache = {} - def getctx(r): - if r not in ccache: - ccache[r] = context.changectx(repo, r) - return ccache[r] - flcache = {} def getfilectx(f, ctx): flctx = ctx.filectx(f, filelog=flcache.get(f))