Mercurial > hg-stable
diff hgext/largefiles/overrides.py @ 25189:1c8c33eaea0a
match: rename _fmap to _fileroots for clarity
fmap isn't a very descriptive name for the set of the match's files.
author | Drew Gottlieb <drgott@google.com> |
---|---|
date | Fri, 08 May 2015 12:30:51 -0700 |
parents | bee00e0c2e45 |
children | 1a95c57959f6 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Wed May 06 15:59:35 2015 -0700 +++ b/hgext/largefiles/overrides.py Fri May 08 12:30:51 2015 -0700 @@ -27,7 +27,7 @@ m = copy.copy(match) lfile = lambda f: lfutil.standin(f) in manifest m._files = filter(lfile, m._files) - m._fmap = set(m._files) + m._fileroots = set(m._files) m._always = False origmatchfn = m.matchfn m.matchfn = lambda f: lfile(f) and origmatchfn(f) @@ -42,7 +42,7 @@ notlfile = lambda f: not (lfutil.isstandin(f) or lfutil.standin(f) in manifest or f in excluded) m._files = filter(notlfile, m._files) - m._fmap = set(m._files) + m._fileroots = set(m._files) m._always = False origmatchfn = m.matchfn m.matchfn = lambda f: notlfile(f) and origmatchfn(f) @@ -358,7 +358,7 @@ and repo.wvfs.isdir(standin): m._files.append(standin) - m._fmap = set(m._files) + m._fileroots = set(m._files) m._always = False origmatchfn = m.matchfn def lfmatchfn(f): @@ -626,7 +626,7 @@ m = copy.copy(match) lfile = lambda f: lfutil.standin(f) in manifest m._files = [lfutil.standin(f) for f in m._files if lfile(f)] - m._fmap = set(m._files) + m._fileroots = set(m._files) origmatchfn = m.matchfn m.matchfn = lambda f: (lfutil.isstandin(f) and (f in manifest) and @@ -742,7 +742,7 @@ return f m._files = [tostandin(f) for f in m._files] m._files = [f for f in m._files if f is not None] - m._fmap = set(m._files) + m._fileroots = set(m._files) origmatchfn = m.matchfn def matchfn(f): if lfutil.isstandin(f):