Mercurial > hg
comparison hgext/blackbox.py @ 41365:876494fd967d
cleanup: delete lots of unused local variables
These were found by IntelliJ. There are many more, but these seemed
pretty safe.
Differential Revision: https://phab.mercurial-scm.org/D5629
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 17 Jan 2019 09:17:12 -0800 |
parents | 49d48489a16b |
children | bd3f03d8cc9f |
comparison
equal
deleted
inserted
replaced
41364:0132221c25cd | 41365:876494fd967d |
---|---|
116 def _log(self, ui, event, msg, opts): | 116 def _log(self, ui, event, msg, opts): |
117 default = ui.configdate('devel', 'default-date') | 117 default = ui.configdate('devel', 'default-date') |
118 date = dateutil.datestr(default, ui.config('blackbox', 'date-format')) | 118 date = dateutil.datestr(default, ui.config('blackbox', 'date-format')) |
119 user = procutil.getuser() | 119 user = procutil.getuser() |
120 pid = '%d' % procutil.getpid() | 120 pid = '%d' % procutil.getpid() |
121 rev = '(unknown)' | |
122 changed = '' | 121 changed = '' |
123 ctx = self._repo[None] | 122 ctx = self._repo[None] |
124 parents = ctx.parents() | 123 parents = ctx.parents() |
125 rev = ('+'.join([hex(p.node()) for p in parents])) | 124 rev = ('+'.join([hex(p.node()) for p in parents])) |
126 if (ui.configbool('blackbox', 'dirty') and | 125 if (ui.configbool('blackbox', 'dirty') and |