largefiles: move identical statement to after if/else
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 16 May 2017 17:47:27 -0700
changeset 32301 8a87bfc5bebb
parent 32300 bd0fd3ff9916
child 32302 8627cf4de929
largefiles: move identical statement to after if/else
hgext/largefiles/overrides.py
--- 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 '.'