Submitter | phabricator |
---|---|
Date | June 1, 2019, 5:48 a.m. |
Message ID | <differential-rev-PHID-DREV-ko7mma33b5egkncc5jhp-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/40293/ |
State | Superseded |
Headers | show |
Comments
martinvonz added a comment. This is meant for the stable branch REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6469 To: martinvonz, #hg-reviewers Cc: mercurial-devel
marmoute requested changes to this revision. marmoute added a comment. This revision now requires changes to proceed. Can we go fully explicit ? Having both `plain` and `store` as the possible value? REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6469 To: martinvonz, #hg-reviewers, marmoute Cc: marmoute, mercurial-devel
martinvonz requested review of this revision.
martinvonz added a comment.
In https://phab.mercurial-scm.org/D6469#94049, @marmoute wrote:
> Can we go fully explicit ? Having both `plain` and `store` as the possible value?
I'd prefer to avoid that on the stable branch. It would require more changes (to the various `vfsmap` instances). I wanted to do it on the default branch, though.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6469
To: martinvonz, #hg-reviewers, marmoute
Cc: marmoute, mercurial-devel
marmoute added a comment. Ah, I see. The move from ('plain', '') to ('', 'plain') is matching the key used for the vfsmap? If so, go ahead with this patch on stable. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6469 To: martinvonz, #hg-reviewers, marmoute Cc: marmoute, mercurial-devel
Patch
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -133,10 +133,10 @@ def join(self, obj, fnameandlocation): fname, location = fnameandlocation - if location == '': + if location == 'plain': return obj.vfs.join(fname) else: - if location != 'store': + if location != '': raise error.ProgrammingError('unexpected location: %s' % location) return obj.sjoin(fname) @@ -1219,8 +1219,8 @@ cls = repoview.newtype(self.unfiltered().__class__) return cls(self, name, visibilityexceptions) - @mixedrepostorecache(('bookmarks', ''), ('bookmarks.current', ''), - ('00changelog.i', 'store')) + @mixedrepostorecache(('bookmarks', 'plain'), ('bookmarks.current', 'plain'), + ('00changelog.i', '')) def _bookmarks(self): return bookmarks.bmstore(self)