changeset 23044:075f55a9c488

largefiles: inline redundant toname function in status Simpler and an optimization.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 15 Oct 2014 05:08:56 +0200
parents 244dbb646ab7
children a4dd270a419c
files hgext/largefiles/reposetup.py
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Wed Oct 15 05:08:56 2014 +0200
+++ b/hgext/largefiles/reposetup.py	Wed Oct 15 05:08:56 2014 +0200
@@ -217,12 +217,8 @@
                                 clean)
                     result = [sorted(list1 + list2)
                               for (list1, list2) in zip(normals, lfstatus)]
-                else:
-                    def toname(f):
-                        if lfutil.isstandin(f):
-                            return lfutil.splitstandin(f)
-                        return f
-                    result = [[toname(f) for f in items]
+                else: # not against working directory
+                    result = [[lfutil.splitstandin(f) or f for f in items]
                               for items in result]
 
                 if wlock: