Submitter | phabricator |
---|---|
Date | May 20, 2019, 3:47 p.m. |
Message ID | <5fdd85dfbbf9a06dd96cc8a5ea6db971@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/40147/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -759,13 +759,14 @@ if not files or '.' in files: files = ['.'] + # constructing the foldmap is expensive, so don't do it for the + # common case where files is ['.'] + normalize = None results = dict.fromkeys(subrepos) results['.hg'] = None for ff in files: - # constructing the foldmap is expensive, so don't do it for the - # common case where files is ['.'] - if normalize and ff != '.': + if normalize: nf = normalize(ff, False, True) else: nf = ff