scmutil: fix an unbound variable with progressbar debug enabled
Differential Revision: https://phab.mercurial-scm.org/D7852
--- a/mercurial/scmutil.py Mon Jan 13 14:12:31 2020 -0500
+++ b/mercurial/scmutil.py Mon Jan 13 17:18:03 2020 -0500
@@ -1760,6 +1760,7 @@
self._updatebar(self.topic, self.pos, b"", self.unit, self.total)
def _printdebug(self, item):
+ unit = b''
if self.unit:
unit = b' ' + self.unit
if item: