Mercurial > public > mercurial-scm > hg-stable
diff hgext/convert/cvsps.py @ 16688:cfb6682961b8
cleanup: replace naked excepts with more specific ones
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:02:45 +0200 |
parents | 525fdb738975 |
children | e7cfe3587ea4 |
line wrap: on
line diff
--- a/hgext/convert/cvsps.py Sat May 12 16:00:58 2012 +0200 +++ b/hgext/convert/cvsps.py Sat May 12 16:02:45 2012 +0200 @@ -706,11 +706,11 @@ if mergeto: m = mergeto.search(c.comment) if m: - try: + if m.groups(): m = m.group(1) if m == 'HEAD': m = None - except: + else: m = None # if no group found then merge to HEAD if m in branches and c.branch != m: # insert empty changeset for merge