[PATCH stable] debugbuilddag: fix uninitialized variable
Greg Ward
greg at gerg.ca
Thu Mar 1 20:45:10 CST 2012
On 01 March 2012, Wagner Bruna said:
> # 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)
...surely this is reproducible with a test case? I mean, I *know* it
is, I just ran your "debugbuilddag" command in issue3299 where you
found this bug. ;-)
Greg
--
Greg Ward http://www.gerg.ca/
Clarke's Law, redux:
Any sufficiently advanced technology is indistinguishable from a rigged demo.
More information about the Mercurial-devel
mailing list