D6470: mixedrepostorecache: fix a silly redundant updating of set
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Jun 10 10:57:30 EDT 2019
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
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, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list