Changeset abc19dbca8ae…
Parent 2b6373ad3efe…
by
Changes to one file · Browse files at abc19dbca8ae Showing diff from parent 2b6373ad3efe Diff from another changeset...
@@ -133,8 +133,11 @@ title_line('user/date:', ctx.user() + '\t' + date, 'changeset')
for p in parents:
pctx = self.repo.changectx(p)
- summary = pctx.description().splitlines()[0]
- summary = toutf(summary)
+ try:
+ summary = pctx.description().splitlines()[0]
+ summary = toutf(summary)
+ except:
+ summary = ""
change = str(p) + ':' + short(self.repo.changelog.node(p))
title = 'parent:'
title += ' ' * (12 - len(title))
@@ -144,8 +147,11 @@ buf.insert(eob, "\n")
for n in self.repo.changelog.children(ctx.node()):
cctx = self.repo.changectx(n)
- summary = cctx.description().splitlines()[0]
- summary = toutf(summary)
+ try:
+ summary = cctx.description().splitlines()[0]
+ summary = toutf(summary)
+ except:
+ summary = ""
childrev = self.repo.changelog.rev(n)
change = str(childrev) + ':' + short(n)
title = 'child:'
|
Loading...