Mercurial > hg
comparison hgext/convert/git.py @ 16689:f366d4c2ff34
cleanup: replace naked excepts with except Exception: ...
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:02:46 +0200 |
parents | e34106fa0dc3 |
children | 0eed66327ad4 |
comparison
equal
deleted
inserted
replaced
16688:cfb6682961b8 | 16689:f366d4c2ff34 |
---|---|
209 rev, name = line.split(None, 1) | 209 rev, name = line.split(None, 1) |
210 if not name.startswith(prefix): | 210 if not name.startswith(prefix): |
211 continue | 211 continue |
212 name = '%s%s' % (reftype, name[prefixlen:]) | 212 name = '%s%s' % (reftype, name[prefixlen:]) |
213 bookmarks[name] = rev | 213 bookmarks[name] = rev |
214 except: | 214 except Exception: |
215 pass | 215 pass |
216 | 216 |
217 return bookmarks | 217 return bookmarks |