changeset 9684:618af2034ca6

patch: use the public ctx API instead of the internals
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 31 Oct 2009 18:02:34 +0100
parents 5c8651e2f5e0
children a820cd39d415
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Sat Oct 31 18:02:13 2009 +0100
+++ b/mercurial/patch.py	Sat Oct 31 18:02:34 2009 +0100
@@ -1227,7 +1227,7 @@
             if f not in cache:
                 if len(cache) > 20:
                     del cache[order.pop(0)]
-                cache[f] = fctx._filelog
+                cache[f] = fctx.filelog()
             else:
                 order.remove(f)
             order.append(f)