In previous patch we added support to upgrade current repository to use share
safe mode. This patch adds support to downgrade to remove share-safe mode.
Details
Details
- Reviewers
mharbison72 - Group Reviewers
hg-reviewers - Commits
- rHGc6a1fa42e325: upgrade: add support to downgrade share safe mode
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
Comment Actions
I haven't followed all of the sharesafe stuff, but should the nonsharedhgrc be folded into the hgrc when downgrading or unsharing? I don't see that, at least in the unshare code.
mercurial/upgrade.py | ||
---|---|---|
1474 | Not sure what Re-share existing shares means. Is it a suggestion? |
Comment Actions
There is no need for that because whether the repository is shared or not, we always try to read hgrc-not-shared always. https://www.mercurial-scm.org/repo/hg-committed/file/default/mercurial/localrepo.py#l735
mercurial/upgrade.py | ||
---|---|---|
1474 | Yes, I will reword it so that it's clearer. |
mercurial/localrepo.py | ||
---|---|---|
569 ↗ | (On Diff #23715) | Needs bytes? |
Not sure what Re-share existing shares means. Is it a suggestion?