Bryan O'Sullivan  committed a103d52

svnrepo: handle module/class rename in hg 2.3

  • Participants
  • Parent commits 312f36a

Comments (0)

Files changed (1)

File hgsubversion/

 from mercurial import error
 from mercurial import util as hgutil
-from mercurial import httprepo
-import mercurial.repo
+    from mercurial.peer import peerrepository
+    from mercurial import httppeer
+except ImportError:
+    from mercurial.repo import repository as peerrepository
+    from mercurial import httprepo as httppeer
     from mercurial import phases
     repo.__class__ = svnlocalrepo
-class svnremoterepo(mercurial.repo.repository):
+class svnremoterepo(peerrepository):
     """ the dumb wrapper for actual Subversion repositories """
     def __init__(self, ui, path=None):
     if url.startswith('http://') or url.startswith('https://'):
             # may yield a bogus 'real URL...' message
-            return httprepo.instance(ui, url, create)
+            return httppeer.instance(ui, url, create)
         except error.RepoError:
             ui.note('(falling back to Subversion support)\n')