comparison silvermirror/hg.py @ 8:0da780dd81d0

use bare exception for some reason i can no longer remember
author k0s <k0scist@gmail.com>
date Thu, 28 Jan 2010 13:46:58 -0500
parents c999b2f16159
children 5a909090fb24
comparison
equal deleted inserted replaced
7:d3d0b9414e19 8:0da780dd81d0
17 _ui = ui.ui() 17 _ui = ui.ui()
18 url = '%s/%s' % (host, path) 18 url = '%s/%s' % (host, path)
19 try: 19 try:
20 repo = hg.repository(_ui, path) 20 repo = hg.repository(_ui, path)
21 print 'Updating %s:' % path 21 print 'Updating %s:' % path
22 except mercurial.repo.RepoError: 22 except Exception, e:
23 repo = hg.repository(_ui, url) 23 repo = hg.repository(_ui, url)
24 print 'Cloning %s:' % path 24 print 'Cloning %s:' % path
25 commands.clone(_ui, repo, pull=False, uncompressed=False, rev=None, noupdate=False) 25 commands.clone(_ui, repo, pull=False, uncompressed=False, rev=None, noupdate=False)
26 return 26 return
27 27