Mercurial > hg
changeset 22525:764127f58903
largefiles: simplify iteration over standins
Instead of iterating over all files in the context and ignoring those
that are not standins, pass a standin-matcher to the context and
iterate over only the files matching.
Apart from making the intent clearer, this implementation will also
benefit from any future optimizations done to the manifest walking
code.
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Tue, 16 Sep 2014 23:10:39 -0700 |
parents | 8c8fe120670f |
children | 1e6d2b6b37ea |
files | hgext/largefiles/reposetup.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Tue Sep 16 22:50:38 2014 -0700 +++ b/hgext/largefiles/reposetup.py Tue Sep 16 23:10:39 2014 -0700 @@ -193,9 +193,7 @@ # Standins no longer found in lfdirstate has been # removed - for standin in ctx1.manifest(): - if not lfutil.isstandin(standin): - continue + for standin in ctx1.walk(lfutil.getstandinmatcher(self)): lfile = lfutil.splitstandin(standin) if not match(lfile): continue