mercurial/patch.py
changeset 6532 833be17000b6
parent 6531 c2c4fa9af016
child 6602 a57a27b12965
--- 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))