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
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
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 | ||
---|---|---|
1479 | 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 | ||
---|---|---|
1479 | Yes, I will reword it so that it's clearer. |
mercurial/localrepo.py | ||
---|---|---|
568 | Needs bytes? |
Needs bytes?