[PATCH] largefiles: move identical statement to after if/else

Martin von Zweigbergk martinvonz at google.com
Wed May 17 05:26:50 UTC 2017


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1494982047 25200
#      Tue May 16 17:47:27 2017 -0700
# Node ID acc0bd9507ba5daeaecabe26a066dc51288d9f01
# Parent  779a1ae6d0d9eeb487636f665747e92195eb234e
largefiles: move identical statement to after if/else

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -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 '.'


More information about the Mercurial-devel mailing list