Show More
@@ -58,12 +58,8 b' class bmstore(dict):' | |||
|
58 | 58 | line = line.strip() |
|
59 | 59 | if not line: |
|
60 | 60 | continue |
|
61 |
|
|
|
62 | repo.ui.warn(_('malformed line in .hg/bookmarks: %r\n') | |
|
63 | % line) | |
|
64 | continue | |
|
61 | try: | |
|
65 | 62 | sha, refspec = line.split(' ', 1) |
|
66 | try: | |
|
67 | 63 | node = tonode(sha) |
|
68 | 64 | if node in nm: |
|
69 | 65 | refspec = encoding.tolocal(refspec) |
@@ -71,6 +67,7 b' class bmstore(dict):' | |||
|
71 | 67 | except (TypeError, ValueError): |
|
72 | 68 | # - bin(...) can raise TypeError |
|
73 | 69 | # - node in nm can raise ValueError for non-20-bytes entry |
|
70 | # - split(...) can raise ValueError for string without ' ' | |
|
74 | 71 | repo.ui.warn(_('malformed line in .hg/bookmarks: %r\n') |
|
75 | 72 | % line) |
|
76 | 73 | except IOError as inst: |
General Comments 0
You need to be logged in to leave comments.
Login now