Patchwork D7852: scmutil: fix an unbound variable with progressbar debug enabled

login
register
mail settings
Submitter phabricator
Date Jan. 14, 2020, 4:41 a.m.
Message ID <24176589a9105ac82c95f5953a6e8f82@localhost.localdomain>
Download mbox | patch
Permalink /patch/44307/
State Not Applicable
Headers show

Comments

phabricator - Jan. 14, 2020, 4:41 a.m.
Closed by commit rHG733aefddc4aa: scmutil: fix an unbound variable with progressbar debug enabled (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7852?vs=19193&id=19203

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7852/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7852

AFFECTED FILES
  mercurial/scmutil.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -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: