Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.3, 0.7.4, and 0.7.5

histselect: catch parsing errors in log parser

fixes traceback reported in issue #125

Somehow 'hg log' generated a line to stdout that was not
empty and also did not have a colon.

Changeset 945949090302

Parent 523b97d77588

by Steve Borho

Changes to one file · Browse files at 945949090302 Showing diff from parent 523b97d77588 Diff from another changeset...

 
140
141
142
143
144
145
146
 
 
 
 
 
 
 
147
148
149
 
140
141
142
 
 
 
 
143
144
145
146
147
148
149
150
151
152
@@ -140,10 +140,13 @@
  histlist.append(cs)   cs = {}   else: - name, value = re.split(':\s+', x, 1) - if name not in cs: - cs[name] = [] - cs[name].append(hglib.toutf(value)) + try: + name, value = re.split(':\s+', x, 1) + if name not in cs: + cs[name] = [] + cs[name].append(hglib.toutf(value)) + except ValueError: + pass   if cs:   histlist.append(cs)