This is an archive of the discontinued Mercurial Phabricator instance.

progressfile: do not swallow the progress bar if statefile is not set
ClosedPublic

Authored by quark on Nov 21 2017, 4:30 PM.
Tags
None
Subscribers

Details

Summary

The statefile-not-set case was not tested. Previously the code will make
ui._progbar return None, which means no progress bar.

Also move the docstring to the header so it shows up in hg help -e, and
use modern config registrar to avoid devel warnings.

Test Plan

Added a test

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Nov 21 2017, 4:30 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 21 2017, 4:30 PM
quark retitled this revision from progressfile: do not swallow the progress if statefile is not set to progressfile: do not swallow the progress bar if statefile is not set.Nov 21 2017, 4:31 PM
quark edited the summary of this revision. (Show Details)Nov 21 2017, 4:39 PM
quark updated this revision to Diff 3747.
phillco accepted this revision.Nov 21 2017, 5:03 PM
phillco added a subscriber: phillco.

Looks good. I sent D1487 to add a test for the HGPLAIN behavior (which works in this change too). I'll land that after this lands so you don't have to merge.

This revision is now accepted and ready to land.Nov 21 2017, 5:03 PM
This revision was automatically updated to reflect the committed changes.