# HG changeset patch # User Jeff Hammel # Date 1391229274 28800 # Node ID 2adda506392bd1f387d448dde813bc80be0723e7 # Parent 19ee8dfe23252bb08737dd540a8c073bfa1ac42e STUB: silvermirror/hg.py diff -r 19ee8dfe2325 -r 2adda506392b silvermirror/hg.py --- 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