removing unused local ccache in patch.diff
authorAdrian Buehlmann <adrian@cadifra.com>
Fri, 11 Apr 2008 15:14:00 +0200
changeset 6532 833be17000b6
parent 6531 c2c4fa9af016
child 6533 65f1b97484be
removing unused local ccache in patch.diff
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))