hgext/progress.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Wed, 10 Jun 2015 11:56:55 -0700
changeset 25520 c8fada8d9db9
parent 25499 0fa964d6fd48
child 25521 f5c906878a47
permissions -rw-r--r--
progress: move config help into core config help This is core feature now.

# progress.py show progress bars for some actions
#
# Copyright (C) 2010 Augie Fackler <durin42@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

"""show progress bars for some actions

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)