This is an archive of the discontinued Mercurial Phabricator instance.

localrepo: disallow share if there is a version mismatch by default
ClosedPublic

Authored by pulkit on Jan 15 2021, 1:47 AM.

Details

Summary

Earlier we used to allow shares which don't use share-safe mechanism to access
repository which uses share-safe mechanism. This defeats the purpose and is bad
behavior. This patch disallows that.

Next patch will introduce a config option to allow that and have clearer
understanding around various options.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

pulkit created this revision.Jan 15 2021, 1:47 AM

That patch itself is good.

The error message it touch should get a hint pointing to the appriate documentation so that the user can understand and fix the situation.

marmoute accepted this revision.Jan 15 2021, 5:16 AM

(please follow up for the message)

mharbison72 requested changes to this revision.Jan 17 2021, 5:19 PM
mharbison72 added a subscriber: mharbison72.
mharbison72 added inline comments.
mercurial/localrepo.py
613

"the source uses", or at least s/use/uses/. I'd fix this in flight, but it looks like none of the rest of the series applies without the previous patch anyway.

This revision now requires changes to proceed.Jan 17 2021, 5:19 PM

note: I am fine with D9783 being taken in its current forms and the locking being fixed as a follow up. Overall the series is still an improvement.

marmoute accepted this revision.Jan 18 2021, 10:47 AM
mharbison72 accepted this revision.Jan 18 2021, 9:08 PM
This revision is now accepted and ready to land.Jan 18 2021, 9:08 PM