mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
getremotechanges: fix incoming support
'hg incoming' causes getremotechanges to be called with revs as a positional argument, which we were not correctly catching here.
This commit is contained in:
parent
d387fe4170
commit
9e574c9364
@ -157,6 +157,9 @@ except ImportError:
|
||||
|
||||
def getremotechanges(orig, ui, repo, other, *args, **opts):
|
||||
if isinstance(other, gitrepo.gitrepo):
|
||||
if args:
|
||||
revs = args[0]
|
||||
else:
|
||||
revs = opts.get('onlyheads', opts.get('revs'))
|
||||
git = GitHandler(repo, ui)
|
||||
r, c, cleanup = git.getremotechanges(other, revs)
|
||||
|
Loading…
Reference in New Issue
Block a user