scmutil: fix an unbound variable with progressbar debug enabled
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 13 Jan 2020 17:18:03 -0500
changeset 44063 089255b1341e
parent 44062 2d49482d0dd4
child 44064 8eb3c52337a6
scmutil: fix an unbound variable with progressbar debug enabled Differential Revision: https://phab.mercurial-scm.org/D7852
mercurial/scmutil.py
--- 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: