Mercurial > hg-stable
comparison hgext/fastannotate/support.py @ 43994:de358da72eb1
fastannotate: drop unused local variable assignments
Flagged by PyCharm.
Differential Revision: https://phab.mercurial-scm.org/D7757
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 18:43:18 -0500 |
parents | 8ff1ecfadcd1 |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
43993:c8a51a90929b | 43994:de358da72eb1 |
---|---|
72 """like the vanilla fctx.annotate, but do it via fastannotate, and make | 72 """like the vanilla fctx.annotate, but do it via fastannotate, and make |
73 the output format compatible with the vanilla fctx.annotate. | 73 the output format compatible with the vanilla fctx.annotate. |
74 may raise Exception, and always return line numbers. | 74 may raise Exception, and always return line numbers. |
75 """ | 75 """ |
76 master = _getmaster(fctx) | 76 master = _getmaster(fctx) |
77 annotated = contents = None | |
78 | 77 |
79 with context.fctxannotatecontext(fctx, follow, diffopts) as ac: | 78 with context.fctxannotatecontext(fctx, follow, diffopts) as ac: |
80 try: | 79 try: |
81 annotated, contents = ac.annotate( | 80 annotated, contents = ac.annotate( |
82 fctx.rev(), master=master, showpath=True, showlines=True | 81 fctx.rev(), master=master, showpath=True, showlines=True |