branch | stable |
changeset 23063 | cd86a6707159 |
parent 22663 | 4c6198737ad8 |
child 23064 | 5dc888b79e70 |
--- a/mercurial/transaction.py Sun Oct 19 16:48:33 2014 +0900 +++ b/mercurial/transaction.py Mon Oct 20 16:53:56 2014 -0700 @@ -349,8 +349,9 @@ data = fp.read() if len(data) > 0: parts = data.split('\0') - for i in xrange(0, len(parts), 2): - f, b = parts[i:i + 1] + # Skip the final part, since it's just a trailing empty space + for i in xrange(0, len(parts) - 1, 2): + f, b = parts[i:i + 2] backupentries.append((f, b, None)) _playback(file, report, opener, entries, backupentries)