Mercurial > hg-stable
changeset 30113:ffb682412b98
eol: fix variable naming - call it _eolmatch instead of _eolfile
It is not the file but a match object based on it.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sun, 09 Oct 2016 15:42:42 +0200 |
parents | 9b6ff0f940ed |
children | ad43458d3529 |
files | hgext/eol.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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: