changeset 1357:44895e2abff2 stable

help: ignore argument passed to doc loader The API changed at Mercurial e0c572d4d112.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 30 Sep 2015 22:12:47 +0900
parents 17876c2c9ce5
children d28bfd2c6e32 129f4ad088c2
files hgsubversion/__init__.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/__init__.py
+++ b/hgsubversion/__init__.py
@@ -159,7 +159,8 @@ def extsetup(ui):
     entries = (
         (['subversion'],
          "Working with Subversion Repositories",
-         lambda: open(os.path.join(helpdir, 'subversion.rst')).read()),
+         # Mercurial >= 3.6: doc(ui)
+         lambda *args: open(os.path.join(helpdir, 'subversion.rst')).read()),
     )
 
     help.helptable.extend(entries)