(arne)
2012-06-04: TODO: incoming and outgoing still breaks for remote repos.. TODO: incoming and outgoing still breaks for remote repos..
diff --git a/site.py b/site.py --- a/site.py +++ b/site.py @@ -265,8 +265,13 @@ def getincoming(ui, repo, otheruri, othe revs, checkout = hg.addbranchrevs(repo, other, branches, None) if revs: revs = [other.lookup(rev) for rev in revs] - other, chlist, cleanupfn = hg.bundlerepo.getremotechanges(ui, repo, other, + try: # FIXME: This breaks on http repos! + other, chlist, cleanupfn = hg.bundlerepo.getremotechanges(ui, repo, other, revs, False, False) + except AttributeError: + chlist = [] + def cleanupfn(): + pass ui.popbuffer() return chlist, cleanupfn @@ -278,8 +283,13 @@ def getoutgoing(ui, repo, otheruri, othe revs, checkout = hg.addbranchrevs(other, repo, branches, None) if revs: revs = [repo.lookup(rev) for rev in revs] - other, chlist, cleanupfn = hg.bundlerepo.getremotechanges(ui, other, repo, + try: # FIXME: This breaks on http repos! + other, chlist, cleanupfn = hg.bundlerepo.getremotechanges(ui, other, repo, revs, False, False) + except AttributeError: + chlist = [] + def cleanupfn(): + pass return chlist, cleanupfn