changeset 42439:aae93201f758

mixedrepostorecache: fix a silly redundant updating of set Differential Revision: https://phab.mercurial-scm.org/D6470
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 31 May 2019 22:38:04 -0700
parents 48f1f864d928
children d279e4f453c4
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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