Mercurial > hg > silvermirror
comparison silvermirror/hg.py @ 30:19ee8dfe2325
STUB: silvermirror/hg.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 31 Jan 2014 19:51:55 -0800 |
parents | 882b26fbfcd3 |
children | 2adda506392b |
comparison
equal
deleted
inserted
replaced
29:882b26fbfcd3 | 30:19ee8dfe2325 |
---|---|
26 repo = hg.repository(_ui, path) | 26 repo = hg.repository(_ui, path) |
27 print 'Updating %s:' % path | 27 print 'Updating %s:' % path |
28 except Exception, e: | 28 except Exception, e: |
29 import pdb;pdb.set_trace() | 29 import pdb;pdb.set_trace() |
30 repo = hg.repository(_ui, url) | 30 repo = hg.repository(_ui, url) |
31 print 'Cloning %s:' % path | 31 print ('Cloning {}:'.format(path)) |
32 commands.clone(_ui, repo, pull=False, uncompressed=False, rev=None, noupdate=False) | 32 commands.clone(_ui, repo, pull=False, uncompressed=False, rev=None, noupdate=False) |
33 return | 33 return |
34 | 34 |
35 commands.pull(_ui, repo, url, rev=None, force=False, update=True) | 35 commands.pull(_ui, repo, url, rev=None, force=False, update=True) |
36 | 36 |
37 # TODO: | 37 # TODO: local repository |
38 # def repositories(path): | 38 # def repositories(path): |
39 # """ | 39 # """ |
40 # return all hg repositories in a path | 40 # return all hg repositories in a path |
41 # """ | 41 # """ |
42 | 42 |