Skip to content
Snippets Groups Projects
Commit d2c4333e authored by Augie Fackler's avatar Augie Fackler
Browse files

getremotechanges: fix incoming support

'hg incoming' causes getremotechanges to be called with revs as a
positional argument, which we were not correctly catching here.
parent 5932586e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment