comparison mercurial/changelog.py @ 28282:d698c11bd189

changelog: remove redundant parentheses You don't need to surround returned tuples with parens.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 27 Feb 2016 22:25:47 -0800
parents ed003859f1d8
children 1778770e1982
comparison
equal deleted inserted replaced
28281:4ef967661751 28282:d698c11bd189
335 335
336 changelog v0 doesn't use extra 336 changelog v0 doesn't use extra
337 """ 337 """
338 text = self.revision(node) 338 text = self.revision(node)
339 if not text: 339 if not text:
340 return (nullid, "", (0, 0), [], "", _defaultextra) 340 return nullid, "", (0, 0), [], "", _defaultextra
341 last = text.index("\n\n") 341 last = text.index("\n\n")
342 desc = encoding.tolocal(text[last + 2:]) 342 desc = encoding.tolocal(text[last + 2:])
343 l = text[:last].split('\n') 343 l = text[:last].split('\n')
344 manifest = bin(l[0]) 344 manifest = bin(l[0])
345 user = encoding.tolocal(l[1]) 345 user = encoding.tolocal(l[1])
356 else: 356 else:
357 time, timezone = float(tdata[0]), int(tdata[1]) 357 time, timezone = float(tdata[0]), int(tdata[1])
358 extra = decodeextra(tdata[2]) 358 extra = decodeextra(tdata[2])
359 359
360 files = l[3:] 360 files = l[3:]
361 return (manifest, user, (time, timezone), files, desc, extra) 361 return manifest, user, (time, timezone), files, desc, extra
362 362
363 def readfiles(self, node): 363 def readfiles(self, node):
364 """ 364 """
365 short version of read that only returns the files modified by the cset 365 short version of read that only returns the files modified by the cset
366 """ 366 """