Mercurial > hg > hg-git
changeset 424:d2c4333e5f14
getremotechanges: fix incoming support
'hg incoming' causes getremotechanges to be called with revs as a
positional argument, which we were not correctly catching here.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 09 Sep 2011 15:42:24 -0500 |
parents | 5932586e6d43 |
children | 1189a4f3e238 |
files | hggit/__init__.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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