# HG changeset patch # User Yuya Nishihara <yuya@tcha.org> # Date 1443618876 -32400 # Wed Sep 30 22:14:36 2015 +0900 # Node ID 983126c08bada4c37dfc716aff8fdca49654c0a4 # Parent 596a721949bc4757e1505907175879170e00ac6e help: ignore argument passed to doc loader The API changed at Mercurial e0c572d4d112. diff --git a/hggit/__init__.py b/hggit/__init__.py --- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -158,7 +158,8 @@ }) helpdir = os.path.join(os.path.dirname(__file__), 'help') entry = (['git'], _("Working with Git Repositories"), - lambda: open(os.path.join(helpdir, 'git.rst')).read()) + # Mercurial >= 3.6: doc(ui) + lambda *args: open(os.path.join(helpdir, 'git.rst')).read()) insort(help.helptable, entry) def reposetup(ui, repo):