equal
deleted
inserted
replaced
1409 if ctx.troubled(): |
1409 if ctx.troubled(): |
1410 # i18n: column positioning for "hg log" |
1410 # i18n: column positioning for "hg log" |
1411 self.ui.write(_("trouble: %s\n") % ', '.join(ctx.troubles()), |
1411 self.ui.write(_("trouble: %s\n") % ', '.join(ctx.troubles()), |
1412 label='log.trouble') |
1412 label='log.trouble') |
1413 |
1413 |
|
1414 self._exthook(ctx) |
|
1415 |
1414 if self.ui.debugflag: |
1416 if self.ui.debugflag: |
1415 files = ctx.p1().status(ctx)[:3] |
1417 files = ctx.p1().status(ctx)[:3] |
1416 for key, value in zip([# i18n: column positioning for "hg log" |
1418 for key, value in zip([# i18n: column positioning for "hg log" |
1417 _("files:"), |
1419 _("files:"), |
1418 # i18n: column positioning for "hg log" |
1420 # i18n: column positioning for "hg log" |
1454 description.splitlines()[0], |
1456 description.splitlines()[0], |
1455 label='log.summary') |
1457 label='log.summary') |
1456 self.ui.write("\n") |
1458 self.ui.write("\n") |
1457 |
1459 |
1458 self.showpatch(ctx, matchfn) |
1460 self.showpatch(ctx, matchfn) |
|
1461 |
|
1462 def _exthook(self, ctx): |
|
1463 '''empty method used by extension as a hook point |
|
1464 ''' |
|
1465 pass |
1459 |
1466 |
1460 def showpatch(self, ctx, matchfn): |
1467 def showpatch(self, ctx, matchfn): |
1461 if not matchfn: |
1468 if not matchfn: |
1462 matchfn = self.matchfn |
1469 matchfn = self.matchfn |
1463 if matchfn: |
1470 if matchfn: |