Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 6532:833be17000b6
removing unused local ccache in patch.diff
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 11 Apr 2008 15:14:00 +0200 |
parents | c2c4fa9af016 |
children | a57a27b12965 |
line wrap: on
line diff
--- 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))