Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 32341:8a87bfc5bebb
largefiles: move identical statement to after if/else
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 16 May 2017 17:47:27 -0700 |
parents | 09fb3d3b1b3a |
children | e8569cc131d1 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Tue May 16 23:40:29 2017 -0700 +++ b/hgext/largefiles/overrides.py Tue May 16 17:47:27 2017 -0700 @@ -347,14 +347,12 @@ else: f = m._cwd + '/' + f return back + lfutil.standin(f) - - pats.update(fixpats(f, tostandin) for f in p) else: def tostandin(f): if lfutil.isstandin(f): return f return lfutil.standin(f) - pats.update(fixpats(f, tostandin) for f in p) + pats.update(fixpats(f, tostandin) for f in p) for i in range(0, len(m._files)): # Don't add '.hglf' to m.files, since that is already covered by '.'