[PATCH] removing unused local ccache in patch.diff

Adrian Buehlmann adrian at cadifra.com
Fri Apr 11 10:10:26 CDT 2008


I ran the tests on FreeBSD 6.3:

Skipped test-highlight: missing feature: Pygments source highlighting library
Skipped test-no-symlinks: system supports symbolic links
Failed test-convert-mtn: output changed
Failed test-imerge: output changed
# Ran 254 tests, 2 skipped, 2 failed.

* imerge extension is defunct (see 368a4ec603cc)
* I'm ignoring test-convert-mtn for this


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1207919640 -7200
# Node ID a03da5fdfec53afefcd48a8a21163f80d2ff556c
# Parent  fcfb6a0a0a84960861b022f5bb3911f728734220
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 @@
     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))



More information about the Mercurial-devel mailing list