[PATCH 1 of 2 evolve-ext] evolve: ui.progress doesn't use total count if pos is None, let's drop it

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Mar 14 09:07:05 EDT 2016



On 03/14/2016 01:05 PM, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6 at dwimlabs.net>
> # Date 1457761525 -28800
> #      Sat Mar 12 13:45:25 2016 +0800
> # Node ID d6da1b74e4520055e39765fb74ae8ae2090a3ed0
> # Parent  97d98b8d9068baa9d072c1a5660818219e86516d
> evolve: ui.progress doesn't use total count if pos is None, let's drop it

I'm not sure what this is about.

> diff --git a/hgext/evolve.py b/hgext/evolve.py
> --- a/hgext/evolve.py
> +++ b/hgext/evolve.py
> @@ -3245,7 +3245,7 @@ def findcommonobsmarkers(ui, local, remo
>           undecided.difference_update(common)
>
>
> -    ui.progress(_("comparing with other"), None, total=totalnb)
> +    ui.progress(_("comparing with other"), None)
>       result = dag.headsetofconnecteds(common)
>       ui.debug("%d total queries\n" % roundtrips)
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list