##// END OF EJS Templates
convert: simple fix for non-existent synthetic/mergepoint attributes
Rocco Rutte -
r7969:a969b147 default
parent child Browse files
Show More
@@ -466,7 +466,7 b' def createchangeset(ui, log, fuzz=60, me'
466 e.file not in files):
466 e.file not in files):
467 c = changeset(comment=e.comment, author=e.author,
467 c = changeset(comment=e.comment, author=e.author,
468 branch=e.branch, date=e.date, entries=[],
468 branch=e.branch, date=e.date, entries=[],
469 mergepoint=e.mergepoint)
469 mergepoint=getattr(e, 'mergepoint', None))
470 changesets.append(c)
470 changesets.append(c)
471 files = {}
471 files = {}
472 if len(changesets) % 100 == 0:
472 if len(changesets) % 100 == 0:
@@ -488,7 +488,8 b' def createchangeset(ui, log, fuzz=60, me'
488 # "File file4 was added on branch ..." (synthetic, 1 entry)
488 # "File file4 was added on branch ..." (synthetic, 1 entry)
489 # "Add file3 and file4 to fix ..." (real, 2 entries)
489 # "Add file3 and file4 to fix ..." (real, 2 entries)
490 # Hence the check for 1 entry here.
490 # Hence the check for 1 entry here.
491 c.synthetic = (len(c.entries) == 1 and c.entries[0].synthetic)
491 synth = getattr(c.entries[0], 'synthetic', None)
492 c.synthetic = (len(c.entries) == 1 and synth)
492
493
493 # Sort files in each changeset
494 # Sort files in each changeset
494
495
General Comments 0
You need to be logged in to leave comments. Login now