comparison hgext/convert/cvsps.py @ 11122:2114e44b08f6

clean up remaining generic exceptions
author Matt Mackall <mpm@selenic.com>
date Fri, 07 May 2010 16:59:00 -0500
parents 278d45703ac2
children 11aad09a6370
comparison
equal deleted inserted replaced
11121:d061ef1d781c 11122:2114e44b08f6
237 continue 237 continue
238 state = 1 238 state = 1
239 continue 239 continue
240 match = re_01.match(line) 240 match = re_01.match(line)
241 if match: 241 if match:
242 raise Exception(match.group(1)) 242 raise logerror(match.group(1))
243 match = re_02.match(line) 243 match = re_02.match(line)
244 if match: 244 if match:
245 raise Exception(match.group(2)) 245 raise logerror(match.group(2))
246 if re_03.match(line): 246 if re_03.match(line):
247 raise Exception(line) 247 raise logerror(line)
248 248
249 elif state == 1: 249 elif state == 1:
250 # expect 'Working file' (only when using log instead of rlog) 250 # expect 'Working file' (only when using log instead of rlog)
251 match = re_10.match(line) 251 match = re_10.match(line)
252 assert match, _('RCS file must be followed by working file') 252 assert match, _('RCS file must be followed by working file')