changeset 44063:089255b1341e

scmutil: fix an unbound variable with progressbar debug enabled Differential Revision: https://phab.mercurial-scm.org/D7852
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 13 Jan 2020 17:18:03 -0500
parents 2d49482d0dd4
children 8eb3c52337a6
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: