##// END OF EJS Templates
dirstate: move special handling of files==['.'] together...
Martin von Zweigbergk -
r42527:7ada5989 default
parent child Browse files
Show More
@@ -759,13 +759,14 b' class dirstate(object):'
759
759
760 if not files or '.' in files:
760 if not files or '.' in files:
761 files = ['.']
761 files = ['.']
762 # constructing the foldmap is expensive, so don't do it for the
763 # common case where files is ['.']
764 normalize = None
762 results = dict.fromkeys(subrepos)
765 results = dict.fromkeys(subrepos)
763 results['.hg'] = None
766 results['.hg'] = None
764
767
765 for ff in files:
768 for ff in files:
766 # constructing the foldmap is expensive, so don't do it for the
769 if normalize:
767 # common case where files is ['.']
768 if normalize and ff != '.':
769 nf = normalize(ff, False, True)
770 nf = normalize(ff, False, True)
770 else:
771 else:
771 nf = ff
772 nf = ff
General Comments 0
You need to be logged in to leave comments. Login now