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)) diff --git a/tests/test-debugbuilddag.t b/tests/test-debugbuilddag.t --- a/tests/test-debugbuilddag.t +++ b/tests/test-debugbuilddag.t @@ -86,18 +86,19 @@ glog o 0: r0 [] @ 0.00 -overwritten files +overwritten files, starting on a non-default branch $ rm -r .hg $ hg init - $ hg debugbuilddag '+2:f +3:p2 @temp