##// END OF EJS Templates
commands: fix checking of share safe requirement on `config --shared`...
Pulkit Goyal -
r46533:777e8d88 default
parent child Browse files
Show More
@@ -2227,13 +2227,13 b' def config(ui, repo, *values, **opts):'
2227 2227 raise error.InputError(
2228 2228 _(b"repository is not shared; can't use --shared")
2229 2229 )
2230 if requirements.SHARESAFE_REQUIREMENT not in repo.requirements:
2231 raise error.InputError(
2232 _(
2233 b"share safe feature not unabled; "
2234 b"unable to edit shared source repository config"
2235 )
2230 if requirements.SHARESAFE_REQUIREMENT not in repo.requirements:
2231 raise error.InputError(
2232 _(
2233 b"share safe feature not enabled; "
2234 b"unable to edit shared source repository config"
2236 2235 )
2236 )
2237 2237 paths = [vfsmod.vfs(repo.sharedpath).join(b'hgrc')]
2238 2238 elif opts.get(b'non_shared'):
2239 2239 paths = [repo.vfs.join(b'hgrc-not-shared')]
General Comments 0
You need to be logged in to leave comments. Login now