# HG changeset patch # User Adrian Buehlmann # Date 2008-04-11 13:14:00 # Node ID 833be17000b64a41657ecf4bc48524a16ffc99b5 # Parent c2c4fa9af016428ee4059e87b2887e5d59368b59 removing unused local ccache in patch.diff diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -1168,12 +1168,6 @@ def diff(repo, node1=None, node2=None, f 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))