diff mercurial/scmutil.py @ 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 a61287a95dc3
children 2122ffa903ea
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: