(Arne Babenhauserheide)
2012-09-17: first tries at fixing the repo-API-compatibility problem. first tries at fixing the repo-API-compatibility problem.
diff --git a/staticsite.py b/staticsite.py --- a/staticsite.py +++ b/staticsite.py @@ -336,6 +336,7 @@ 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, revs, False, False) return chlist, cleanupfn, other @@ -811,13 +812,15 @@ entry[1].extend(siteopts) # Starting an FTP repo. Not yet used, except for throwing errors for missing commands and faking the lock. -from mercurial import repo, util +# TODO: repo -> peer +from mercurial import peer, util try: from mercurial.error import RepoError except ImportError: from mercurial.repo import RepoError -class FTPRepository(repo.repository): +# TODO: repo -> peer +class FTPRepository(peer.peerrepository): def __init__(self, ui, path, create): self.create = create self.ui = ui