hgext/convert/transport.py
changeset 5140 792c1d979097
parent 5126 117dab48ca99
child 6212 e75aab656f46
equal deleted inserted replaced
5139:18abf13064cb 5140:792c1d979097
    79             self.client.config = svn_config
    79             self.client.config = svn_config
    80             try:
    80             try:
    81                 self.ra = svn.client.open_ra_session(
    81                 self.ra = svn.client.open_ra_session(
    82                     self.svn_url.encode('utf8'),
    82                     self.svn_url.encode('utf8'),
    83                     self.client, self.pool)
    83                     self.client, self.pool)
    84             except SubversionException, (_, num):
    84             except SubversionException, (inst, num):
    85                 if num in (svn.core.SVN_ERR_RA_ILLEGAL_URL,
    85                 if num in (svn.core.SVN_ERR_RA_ILLEGAL_URL,
    86                            svn.core.SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
    86                            svn.core.SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED,
    87                            svn.core.SVN_ERR_BAD_URL):
    87                            svn.core.SVN_ERR_BAD_URL):
    88                     raise NotBranchError(url)
    88                     raise NotBranchError(url)
    89                 raise
    89                 raise