mercurial/commands.py
changeset 45921 777e8d88f703
parent 45907 50afeeeb7b79
child 45942 89a2afe31e82
--- a/mercurial/commands.py	Fri Nov 20 14:34:15 2020 +0530
+++ b/mercurial/commands.py	Sat Nov 21 13:30:50 2020 +0530
@@ -2227,13 +2227,13 @@
                 raise error.InputError(
                     _(b"repository is not shared; can't use --shared")
                 )
-                if requirements.SHARESAFE_REQUIREMENT not in repo.requirements:
-                    raise error.InputError(
-                        _(
-                            b"share safe feature not unabled; "
-                            b"unable to edit shared source repository config"
-                        )
+            if requirements.SHARESAFE_REQUIREMENT not in repo.requirements:
+                raise error.InputError(
+                    _(
+                        b"share safe feature not enabled; "
+                        b"unable to edit shared source repository config"
                     )
+                )
             paths = [vfsmod.vfs(repo.sharedpath).join(b'hgrc')]
         elif opts.get(b'non_shared'):
             paths = [repo.vfs.join(b'hgrc-not-shared')]