# HG changeset patch # User jsumners # Date 1297264896 18000 # Node ID 663973c8935172c532eb2ce46c2bdc77957e1aef # Parent 24057391343967eee4957139e510a27ee2fe6813 I found that `inspect.getargspec(discovery.findoutgoing)[0]` was returning `[]` instead of the expected function definition. Since the change occurred between Mercurial 1.6 and 1.7, a simple version check works instead. This fixes https://github.com/schacon/hg-git/issues/issue/168 diff --git a/hggit/__init__.py b/hggit/__init__.py --- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -112,7 +112,7 @@ try: from mercurial import discovery kwname = 'heads' - if 'remoteheads' in inspect.getargspec(discovery.findoutgoing)[0]: + if hg.util.version() > 1.6: kwname = 'remoteheads' def findoutgoing(orig, local, remote, *args, **kwargs): kw = {}