# HG changeset patch # User Wagner Bruna # Date 2012-03-02 14:46:18 # Node ID 28c5648771d16cf68dfc34ba3c1b3662b406d37f # Parent 8412d5a02e6e2fd9c95b63a441dd9e4e9605ac79 debugbuilddag: fix starting a dag on a non-default branch 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