mercurial/commands.py
changeset 43163 5617b748aad8
parent 43117 8ff1ecfadcd1
child 43192 ce20b870041f
--- a/mercurial/commands.py	Thu Oct 10 11:33:33 2019 +0200
+++ b/mercurial/commands.py	Sat Oct 05 13:39:35 2019 -0700
@@ -5615,6 +5615,9 @@
             raise error.Abort(
                 _(b'default push revset for path evaluates to an empty set')
             )
+    elif ui.configbool(b'commands', b'push.require-revs'):
+        raise error.Abort(_(b'no revisions specified to push'),
+                          hint=_(b'did you mean "hg push -r ."?'))
 
     repo._subtoppath = dest
     try: