Mercurial > hg > hg-git
changeset 412:5932586e6d43
Fix mercurial issue2855
I accidentally broke transplant by making revs a required argument.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 17 Jun 2011 09:23:52 -0700 |
parents | de7317967598 |
children | b8eeabb61c7b d2c4333e5f14 |
files | hggit/__init__.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -155,15 +155,16 @@ except ImportError: pass -def getremotechanges(orig, ui, repo, other, revs, *args, **opts): +def getremotechanges(orig, ui, repo, other, *args, **opts): if isinstance(other, gitrepo.gitrepo): + 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 if 'onlyheads' not in orig.func_code.co_varnames: cleanup = None return r, c, cleanup - return orig(ui, repo, other, revs, *args, **opts) + return orig(ui, repo, other, *args, **opts) try: extensions.wrapfunction(bundlerepo, 'getremotechanges', getremotechanges) except AttributeError: