mixedrepostorecache: fix a silly redundant updating of set
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 31 May 2019 22:38:04 -0700
changeset 42439 aae93201f758
parent 42438 48f1f864d928
child 42440 d279e4f453c4
mixedrepostorecache: fix a silly redundant updating of set Differential Revision: https://phab.mercurial-scm.org/D6470
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Jun 06 18:37:21 2019 +0200
+++ b/mercurial/localrepo.py	Fri May 31 22:38:04 2019 -0700
@@ -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