# HG changeset patch # User Pierre-Yves David # Date 1371821147 -7200 # Node ID 99cd4761aee61dfba0aa3b97792dd3ee088ef41b # Parent e777be2c5007a02247a2e3ba29b2c029be14bf71 [client-connection] add a repo property for dbapi compatibility To ease transition from dbapi to repoapi we need the ClientConnection to be as compatible as possible with the dbapi. Adding this method goes in this direction. It'll get deprecated in the deprecation wave that will conclude the repoapi refactoring. related to #2503918 diff -r e777be2c5007 -r 99cd4761aee6 repoapi.py --- a/repoapi.py Fri Jun 21 13:49:13 2013 +0200 +++ b/repoapi.py Fri Jun 21 15:25:47 2013 +0200 @@ -305,3 +305,8 @@ def connection(self): # XXX This is DBAPI compatibility property. Deprecate it ASAP. return self + + @property + def _repo(self): + # XXX This is DBAPI compatibility property. Deprecate it ASAP. + return self._session.repo