equal
deleted
inserted
replaced
335 |
335 |
336 changelog v0 doesn't use extra |
336 changelog v0 doesn't use extra |
337 |
337 |
338 Returns a 6-tuple consisting of the following: |
338 Returns a 6-tuple consisting of the following: |
339 - manifest node (binary) |
339 - manifest node (binary) |
340 - user (encoding.localstr) |
340 - user (binary) |
341 - (time, timezone) 2-tuple of a float and int offset |
341 - (time, timezone) 2-tuple of a float and int offset |
342 - list of files modified by the cset |
342 - list of files modified by the cset |
343 - commit message / description (binary) |
343 - commit message / description (binary) |
344 - dict of extra entries |
344 - dict of extra entries |
345 """ |
345 """ |
348 return nullid, "", (0, 0), [], "", _defaultextra |
348 return nullid, "", (0, 0), [], "", _defaultextra |
349 last = text.index("\n\n") |
349 last = text.index("\n\n") |
350 desc = text[last + 2:] |
350 desc = text[last + 2:] |
351 l = text[:last].split('\n') |
351 l = text[:last].split('\n') |
352 manifest = bin(l[0]) |
352 manifest = bin(l[0]) |
353 user = encoding.tolocal(l[1]) |
353 user = l[1] |
354 |
354 |
355 tdata = l[2].split(' ', 2) |
355 tdata = l[2].split(' ', 2) |
356 if len(tdata) != 3: |
356 if len(tdata) != 3: |
357 time = float(tdata[0]) |
357 time = float(tdata[0]) |
358 try: |
358 try: |