[PATCH] extensions: update doc of enabled() and disabled() according to d5b525697ddb

Yuya Nishihara yuya at tcha.org
Sat Jun 4 07:13:32 CDT 2011


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1307185261 -32400
# Node ID dbd460d16667f8c7a4499361538e94407462f3f7
# Parent  5867bd6e7cf5eaacbb224b476c1e12f2c1cc84d1
extensions: update doc of enabled() and disabled() according to d5b525697ddb

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -261,9 +261,7 @@ def _disabledhelp(path):
         return _('(no help text available)')
 
 def disabled():
-    '''find disabled extensions from hgext
-    returns a dict of {name: desc}, and the max name length'''
-
+    '''find disabled extensions from hgext. returns a dict of {name: desc}'''
     paths = _disabledpaths()
     if not paths:
         return None
@@ -328,7 +326,7 @@ def disabledcmd(ui, cmd, strict=False):
     raise error.UnknownCommand(cmd)
 
 def enabled():
-    '''return a dict of {name: desc} of extensions, and the max name length'''
+    '''return a dict of {name: desc} of extensions'''
     exts = {}
     for ename, ext in extensions():
         doc = (gettext(ext.__doc__) or _('(no help text available)'))


More information about the Mercurial-devel mailing list