Patchwork D6470: mixedrepostorecache: fix a silly redundant updating of set

login
register
mail settings
Submitter phabricator
Date June 10, 2019, 2:57 p.m.
Message ID <6e060a3738156a0626975a82cbe7503a@localhost.localdomain>
Download mbox | patch
Permalink /patch/40402/
State Not Applicable
Headers show

Comments

phabricator - June 10, 2019, 2:57 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGaae93201f758: mixedrepostorecache: fix a silly redundant updating of set (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6470?vs=15318&id=15419

REVISION DETAIL
  https://phab.mercurial-scm.org/D6470

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -128,8 +128,7 @@ 
         # scmutil.filecache only uses the path for passing back into our
         # join(), so we can safely pass a list of paths and locations
         super(mixedrepostorecache, self).__init__(*pathsandlocations)
-        for path, location in pathsandlocations:
-            _cachedfiles.update(pathsandlocations)
+        _cachedfiles.update(pathsandlocations)
 
     def join(self, obj, fnameandlocation):
         fname, location = fnameandlocation