eol: fix variable naming - call it _eolmatch instead of _eolfile
authorMads Kiilerich <madski@unity3d.com>
Sun, 09 Oct 2016 15:42:42 +0200
changeset 30113 ffb682412b98
parent 30112 9b6ff0f940ed
child 30114 ad43458d3529
eol: fix variable naming - call it _eolmatch instead of _eolfile It is not the file but a match object based on it.
hgext/eol.py
--- a/hgext/eol.py	Sun Oct 09 13:50:53 2016 +0200
+++ b/hgext/eol.py	Sun Oct 09 15:42:42 2016 +0200
@@ -305,9 +305,9 @@
             return eol.match
 
         def _hgcleardirstate(self):
-            self._eolfile = self.loadeol([None, 'tip'])
-            if not self._eolfile:
-                self._eolfile = util.never
+            self._eolmatch = self.loadeol([None, 'tip'])
+            if not self._eolmatch:
+                self._eolmatch = util.never
                 return
 
             try:
@@ -344,7 +344,7 @@
 
         def commitctx(self, ctx, haserror=False):
             for f in sorted(ctx.added() + ctx.modified()):
-                if not self._eolfile(f):
+                if not self._eolmatch(f):
                     continue
                 fctx = ctx[f]
                 if fctx is None: