# HG changeset patch # User Martin von Zweigbergk # Date 2017-05-19 05:47:42 # Node ID 4a23cdb32968ab4739cad0c32811b24829c38efa # Parent 655f1e2cfa5ae49f6fae4fcd90836e9074a582c8 largefiles: replace always() method, not _always field We will soon have matchers that don't have an _always field, so largefiles needs to stop assuming that they do. _always is only used by always(), so we safely replace that method instead. diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -42,7 +42,7 @@ def composelargefilematcher(match, manif lfile = lambda f: lfutil.standin(f) in manifest m._files = filter(lfile, m._files) m._fileset = set(m._files) - m._always = False + m.always = lambda: False origmatchfn = m.matchfn m.matchfn = lambda f: lfile(f) and origmatchfn(f) return m @@ -57,7 +57,7 @@ def composenormalfilematcher(match, mani manifest or f in excluded) m._files = filter(notlfile, m._files) m._fileset = set(m._files) - m._always = False + m.always = lambda: False origmatchfn = m.matchfn m.matchfn = lambda f: notlfile(f) and origmatchfn(f) return m @@ -369,7 +369,7 @@ def overridelog(orig, ui, repo, *pats, * m._files.append(standin) m._fileset = set(m._files) - m._always = False + m.always = lambda: False origmatchfn = m.matchfn def lfmatchfn(f): lf = lfutil.splitstandin(f)