comparison hgext/convert/git.py @ 16687:e34106fa0dc3

cleanup: "raise SomeException()" -> "raise SomeException"
author Brodie Rao <brodie@sf.io>
date Sat, 12 May 2012 16:00:58 +0200
parents 525fdb738975
children f366d4c2ff34
comparison
equal deleted inserted replaced
16686:67964cda8701 16687:e34106fa0dc3
67 raise util.Abort(_('cannot retrieve git heads')) 67 raise util.Abort(_('cannot retrieve git heads'))
68 return heads 68 return heads
69 69
70 def catfile(self, rev, type): 70 def catfile(self, rev, type):
71 if rev == hex(nullid): 71 if rev == hex(nullid):
72 raise IOError() 72 raise IOError
73 data, ret = self.gitread("git cat-file %s %s" % (type, rev)) 73 data, ret = self.gitread("git cat-file %s %s" % (type, rev))
74 if ret: 74 if ret:
75 raise util.Abort(_('cannot read %r object at %s') % (type, rev)) 75 raise util.Abort(_('cannot read %r object at %s') % (type, rev))
76 return data 76 return data
77 77