[PATCH 1 of 2 stable] verify: provide unit to ui.makeprogress()

Gregory Szorc gregory.szorc at gmail.com
Wed Nov 14 15:29:12 EST 2018


On Wed, Nov 14, 2018 at 4:45 AM Anton Shestakov <av6 at dwimlabs.net> wrote:

> # HG changeset patch
> # User Anton Shestakov <av6 at dwimlabs.net>
> # Date 1542179222 -28800
> #      Wed Nov 14 15:07:02 2018 +0800
> # Branch stable
> # Node ID d19f768a91641e8a30a6dc862ae44ef0abbe224f
> # Parent  8239d4e5d05f5452d66e4ae1ffc2f58e0d0fbd0d
> # EXP-Topic progress-unit
> verify: provide unit to ui.makeprogress()
>

Queued for stable.


>
> diff --git a/mercurial/verify.py b/mercurial/verify.py
> --- a/mercurial/verify.py
> +++ b/mercurial/verify.py
> @@ -302,7 +302,8 @@ class verifier(object):
>          ui.status(_("crosschecking files in changesets and manifests\n"))
>
>          total = len(filelinkrevs) + len(filenodes)
> -        progress = ui.makeprogress(_('crosschecking'), total=total)
> +        progress = ui.makeprogress(_('crosschecking'), unit=_('files'),
> +                                   total=total)
>          if self.havemf:
>              for f in sorted(filelinkrevs):
>                  progress.increment()
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20181114/aabbc67b/attachment.html>


More information about the Mercurial-devel mailing list