changeset 490:67404c3a4d75

python/hgrc.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 23:05:05 -0700
parents 9b95f12fef36
children 7325974b1eff
files python/hgrc.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/python/hgrc.py	Sat Aug 10 21:33:59 2013 -0700
+++ b/python/hgrc.py	Sat Aug 10 23:05:05 2013 -0700
@@ -112,8 +112,11 @@
                for name in available_actions
                if getattr(options, name)]
     if not actions:
+        # add a default action for our convenience
         actions = [('default_push_ssh', True)]
     actions = OrderedDict(actions)
+    if not actions:
+        parser.error("Please specify an action")
 
     # find all hgrc files
     hgrc = []