diff --git a/hggit/__init__.py b/hggit/__init__.py index 409e2f69de..8bb14935b9 100644 --- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -157,7 +157,10 @@ except ImportError: def getremotechanges(orig, ui, repo, other, *args, **opts): if isinstance(other, gitrepo.gitrepo): - revs = opts.get('onlyheads', opts.get('revs')) + if args: + revs = args[0] + else: + revs = opts.get('onlyheads', opts.get('revs')) git = GitHandler(repo, ui) r, c, cleanup = git.getremotechanges(other, revs) # ugh. This is ugly even by mercurial API compatibility standards