Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGce4c29705983: py3: use stringutil.pprint() to print boolean values
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| rev = node.hex(self.repo.changelog.node(rev)) | rev = node.hex(self.repo.changelog.node(rev)) | ||||
| # fast path: if rev is in the main branch already | # fast path: if rev is in the main branch already | ||||
| directly, revfctx = self.canannotatedirectly(rev) | directly, revfctx = self.canannotatedirectly(rev) | ||||
| if directly: | if directly: | ||||
| if self.ui.debugflag: | if self.ui.debugflag: | ||||
| self.ui.debug('fastannotate: %s: using fast path ' | self.ui.debug('fastannotate: %s: using fast path ' | ||||
| '(resolved fctx: %s)\n' | '(resolved fctx: %s)\n' | ||||
| % (self.path, util.safehasattr(revfctx, 'node'))) | % (self.path, | ||||
| stringutil.pprint(util.safehasattr(revfctx, | |||||
| 'node')))) | |||||
| return self.annotatedirectly(revfctx, showpath, showlines) | return self.annotatedirectly(revfctx, showpath, showlines) | ||||
| # resolve master | # resolve master | ||||
| masterfctx = None | masterfctx = None | ||||
| if master: | if master: | ||||
| try: | try: | ||||
| masterfctx = self._resolvefctx(master, resolverev=True, | masterfctx = self._resolvefctx(master, resolverev=True, | ||||
| adjustctx=True) | adjustctx=True) | ||||