##// 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 760 if not files or '.' in files:
761 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 765 results = dict.fromkeys(subrepos)
763 766 results['.hg'] = None
764 767
765 768 for ff in files:
766 # constructing the foldmap is expensive, so don't do it for the
767 # common case where files is ['.']
768 if normalize and ff != '.':
769 if normalize:
769 770 nf = normalize(ff, False, True)
770 771 else:
771 772 nf = ff
General Comments 0
You need to be logged in to leave comments. Login now