# HG changeset patch # User Augie Fackler # Date 1315600944 18000 # Node ID d2c4333e5f14ab690242ee9052fedb0e8ee2f4be # Parent 5932586e6d43acc9f14c103ef76aa9a32f923434 getremotechanges: fix incoming support 'hg incoming' causes getremotechanges to be called with revs as a positional argument, which we were not correctly catching here. diff --git a/hggit/__init__.py b/hggit/__init__.py --- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -157,7 +157,10 @@ 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