changeset 32301: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 bd0fd3ff9916
children 8627cf4de929
files hgext/largefiles/overrides.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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 '.'