[PATCH stable] debugbuilddag: fix uninitialized variable

Wagner Bruna wagner.bruna+mercurial at gmail.com
Thu Mar 1 16:33:42 CST 2012


# HG changeset patch
# User Wagner Bruna <wbruna at softwareexpress.com.br>
# Date 1330640804 10800
# Branch stable
# Node ID 64fb7fe6abcb5bebc4a827594a903914d6335e69
# Parent  8ae7626d8bf1c41998bc62dbb929ae032c6ab6ff
debugbuilddag: fix uninitialized variable

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1381,7 +1381,8 @@ def debugbuilddag(ui, repo, text=None,
         at = -1
         atbranch = 'default'
         nodeids = []
-        ui.progress(_('building'), 0, unit=_('revisions'), total=total)
+        id = 0
+        ui.progress(_('building'), id, unit=_('revisions'), total=total)
         for type, data in dagparser.parsedag(text):
             if type == 'n':
                 ui.note('node %s\n' % str(data))


More information about the Mercurial-devel mailing list