D6470: mixedrepostorecache: fix a silly redundant updating of set
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Jun 1 05:55:39 UTC 2019
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6470
AFFECTED FILES
mercurial/localrepo.py
CHANGE DETAILS
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
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list