# HG changeset patch # User Jeff Hammel # Date 1391231908 28800 # Node ID d5e0bce5e4118e51219f3c076e6706addaefd0c0 # Parent fa1fe03ad9240c7fb967c74e9dc95479d8f4ef2e STUB: silvermirror/hg.py diff -r fa1fe03ad924 -r d5e0bce5e411 silvermirror/hg.py --- 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()