diff hgext/largefiles/overrides.py @ 24534:1925769b4ff8

log: prefer 'wctx' over 'pctx' for working context
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 18 Mar 2015 21:44:25 -0700
parents 61a99993f8a7
children dfb86af18a35
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Tue Mar 31 08:31:42 2015 -0500
+++ b/hgext/largefiles/overrides.py	Wed Mar 18 21:44:25 2015 -0700
@@ -376,8 +376,8 @@
     # The magic matchandpats override should be used for case (1) but not for
     # case (2).
     def overridemakelogfilematcher(repo, pats, opts):
-        pctx = repo[None]
-        match, pats = oldmatchandpats(pctx, pats, opts)
+        wctx = repo[None]
+        match, pats = oldmatchandpats(wctx, pats, opts)
         return lambda rev: match
 
     oldmatchandpats = installmatchandpatsfn(overridematchandpats)