changeset 372:663973c89351

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
author jsumners
date Wed, 09 Feb 2011 10:21:36 -0500
parents 240573913439
children 23ca66eab3b5
files hggit/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}