# HG changeset patch # User Mads Kiilerich # Date 2014-10-15 03:08:56 # Node ID 075f55a9c488304d86fd2496ffee66a711d6d264 # Parent 244dbb646ab7c90d09bf8bd60ffa7ca576823001 largefiles: inline redundant toname function in status Simpler and an optimization. diff --git a/hgext/largefiles/reposetup.py b/hgext/largefiles/reposetup.py --- a/hgext/largefiles/reposetup.py +++ b/hgext/largefiles/reposetup.py @@ -217,12 +217,8 @@ def reposetup(ui, repo): 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: