changeset 66:28249d6ea0ef default tip

Fixed inability to list repositorys when not giving a repository name.
author John Schneiderman
date Fri, 19 Feb 2016 19:04:28 +0100
parents d20e6d543ee8
children
files .hgignore src/hwm.py
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri Feb 19 18:45:37 2016 +0100
+++ b/.hgignore	Fri Feb 19 19:04:28 2016 +0100
@@ -5,3 +5,4 @@
 MANIFEST
 build/*
 *.kate-swp
+.kdev4/*
--- a/src/hwm.py	Fri Feb 19 18:45:37 2016 +0100
+++ b/src/hwm.py	Fri Feb 19 19:04:28 2016 +0100
@@ -26,7 +26,7 @@
     """ Determines if the current running user is the expected HgWeb user.
 
     @param[in] str expectedHgUser    The expected user-name for the Mercurial
-                                    web-manager.
+                                     web-manager.
 
     @return Gives true when the user is the expected HgWeb user, false
     else-wise.
@@ -153,11 +153,13 @@
 
         # Examine the supplied arguments and perform requested actions.
         args = parser.parse_args()
-        repo = __extract_values(args)
-
         if args.list:
             manager.list()
-        elif args.plugin is not None:
+            exit(0)
+        else:
+            repo = __extract_values(args)
+
+        if args.plugin is not None:
             if args.enable:
                 manager.plugInEnable(repo, args.plugin[0], args.script_path)
             elif args.disable: