Patchwork [3,of,5,V3] progress: empty the extension of any logic

login
register
mail settings
Submitter Pierre-Yves David
Date June 11, 2015, 7:31 a.m.
Message ID <4401e4acc72379e47ace.1434007895@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9601/
State Accepted
Headers show

Comments

Pierre-Yves David - June 11, 2015, 7:31 a.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 4401e4acc72379e47aced595797a1aa4db232ba8
# Parent  c77874c1fb02168db13c06fa9bcd12eaa8828142
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)