Submitter | Anton Shestakov |
---|---|
Date | Nov. 14, 2018, 12:41 p.m. |
Message ID | <d19f768a91641e8a30a6.1542199310@neuro> |
Download | mbox | patch |
Permalink | /patch/36569/ |
State | Accepted |
Headers | show |
Comments
On Wed, Nov 14, 2018 at 4:45 AM Anton Shestakov <av6@dwimlabs.net> wrote: > # HG changeset patch > # User Anton Shestakov <av6@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@mercurial-scm.org > https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel >
Patch
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()