changeset 26:16a12d660609

STUB: silvermirror/hg.py
author Jeff Hammel <k0scist@gmail.com>
date Fri, 31 Jan 2014 18:56:29 -0800
parents cedf9a0e3d61
children a648f57b1921
files silvermirror/hg.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py
+++ b/silvermirror/hg.py
@@ -41,17 +41,17 @@ def update(host, path):
 #     """
 
 #     ui = ui.ui()
 #     files = [ os.path.join(path, f) for f in os.listdir(path) ]
 #     directories = [ f for f in files if os.path.isdir(f) ]
 
 #     repos = []
 #     for d in directories:
-#         try: 
+#         try:
 #             repo = hg.repository(ui, d)
 #             repos.append(os.path.basename(d))
 #         except mercurial.repo.RepoError:
 #             pass
 #     return repos
 
 def repositories(url):
     """
@@ -69,17 +69,17 @@ def main(args=sys.argv[1:]):
     parser.add_option('-d', '--directory', dest='directory',
                       default=os.path.join(os.environ['HOME'], 'hg'),
                       help="directory to clone/update to")
     parser.add_option('--list', dest='list',
                       action='store_true', default=False)
     options, args = parser.parse_args(args)
     if not requirements_fulfilled:
         # Hack; this should all be better o_O
-        parser.error("Must have mercurial and lxml packages to use, sorry")
+        parser.error("Must have mercurial and lxml packages to use, sorry: {}".format(e))
     if not options.host:
         parser.print_usage()
         parser.exit()
 
     # kill trailing slash
     options.host = options.host.rstrip('/')
 
     repos = repositories(options.host)