Patchwork [3,of,4,V2] progress: empty the extension of any logic

login
register
mail settings
Submitter Pierre-Yves David
Date June 10, 2015, 7:02 p.m.
Message ID <ac32c2212c99b49eb996.1433962964@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9589/
State Superseded
Headers show

Comments

Pierre-Yves David - June 10, 2015, 7:02 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1433750447 25200
#      Mon Jun 08 01:00:47 2015 -0700
# Node ID ac32c2212c99b49eb99619cd642b9ba3365cee91
# Parent  00e625c98575d0e6c93b57faaf741093285fd4b5
progress: empty the extension of any logic

The default value match the one enforce by the extension, we can remove that
logic.

Patch

diff --git a/hgext/progress.py b/hgext/progress.py
--- a/hgext/progress.py
+++ b/hgext/progress.py
@@ -10,12 +10,5 @@ 
 This extension uses the progress information logged by hg commands
 to draw progress bars that are as informative as possible. Some progress
 bars only offer indeterminate information, while others have a definite
 end point.
 """
-
-def uisetup(ui):
-    if ui.config('progress', 'disable', None) is None:
-        ui.setconfig('progress', 'disable', 'False', 'hgext-progress')
-
-def reposetup(ui, repo):
-    uisetup(repo.ui)