Mercurial > hg > hg-git
changeset 425:1189a4f3e238
Merge incoming fix.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 09 Sep 2011 15:43:35 -0500 |
parents | d2c4333e5f14 (diff) 09cedf16ecc0 (current diff) |
children | 668859fc46b7 |
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 @@ -158,7 +158,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