changeset 31:2adda506392b

STUB: silvermirror/hg.py
author Jeff Hammel <k0scist@gmail.com>
date Fri, 31 Jan 2014 20:34:34 -0800
parents 19ee8dfe2325
children fa1fe03ad924
files silvermirror/hg.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py	Fri Jan 31 19:51:55 2014 -0800
+++ b/silvermirror/hg.py	Fri Jan 31 20:34:34 2014 -0800
@@ -20,15 +20,13 @@
     """
     get changes from host on path
     """
-    _ui = ui.ui()
     url = '%s/%s' % (host, path)
     try:
-        repo = hg.repository(_ui, path)
-        print 'Updating %s:' % path
+        repo = hg.repository(path)
+        print ('Updating {}:'.format(path))
     except Exception, e:
-        import pdb;pdb.set_trace()
         repo = hg.repository(_ui, url)
-        print ('Cloning {}:'.format(path))
+        print ('Cloning {} -> {}'.format(url, path))
         commands.clone(_ui, repo, pull=False, uncompressed=False, rev=None, noupdate=False)
         return