changeset 33:d5e0bce5e411

STUB: silvermirror/hg.py
author Jeff Hammel <k0scist@gmail.com>
date Fri, 31 Jan 2014 21:18:28 -0800
parents fa1fe03ad924
children f0b30886801f
files silvermirror/hg.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py	Fri Jan 31 21:05:34 2014 -0800
+++ b/silvermirror/hg.py	Fri Jan 31 21:18:28 2014 -0800
@@ -26,7 +26,7 @@
         print ('Updating {}:'.format(path))
         repo.pull(host, update=True, insecure=True)
     except ServerError:
-        print ('Cloning {} -> {}'.format(url, path))
+        print ('Cloning {} -> {}'.format(source, path))
         repo = hglib.clone(source, path)
 
 
@@ -91,8 +91,9 @@
     if not os.path.exists(options.directory):
         os.mkdir(options.directory)
     for repo in repos:
+        source = '{}/{}'.format(options.host, repo)
         dest = os.path.join(options.directory, repo)
-        update(options.host, dest)
+        update(source, dest)
 
 if __name__ == '__main__':
     main()