comparison hgext/mq.py @ 15087:adad8d68fb1f

mq: split up overly long line
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 11 Sep 2011 18:49:54 +0200
parents 110d6804bfc6
children 510184e5a09e
comparison
equal deleted inserted replaced
15085:110d6804bfc6 15087:adad8d68fb1f
293 entry = l.split(':', 1) 293 entry = l.split(':', 1)
294 if len(entry) > 1: 294 if len(entry) > 1:
295 n, name = entry 295 n, name = entry
296 yield statusentry(bin(n), name) 296 yield statusentry(bin(n), name)
297 elif l.strip(): 297 elif l.strip():
298 self.ui.warn(_('malformated mq status line: %s\n') % entry) 298 msg = _('malformated mq status line: %s\n') % entry
299 self.ui.warn(msg)
299 # else we ignore empty lines 300 # else we ignore empty lines
300 lines = self.opener.read(self.statuspath).splitlines() 301 lines = self.opener.read(self.statuspath).splitlines()
301 return list(parselines(lines)) 302 return list(parselines(lines))
302 return [] 303 return []
303 304