Esempio n. 1
0
 def get_location(self, path, rev, old_rev):
     try:
         results = repos.svn_repos_trace_node_locations(
             self.fs_ptr, path, rev, [old_rev], _allow_all)
     except core.SubversionException, e:
         _fix_subversion_exception(e)
         if e.apr_err == core.SVN_ERR_FS_NOT_FOUND:
             raise vclib.ItemNotFound(path)
         raise
Esempio n. 2
0
 def get_location(self, path, rev, old_rev):
   try:
     results = repos.svn_repos_trace_node_locations(self.fs_ptr, path,
                                                    rev, [old_rev], _allow_all)
   except core.SubversionException, e:
     _fix_subversion_exception(e)
     if e.apr_err == core.SVN_ERR_FS_NOT_FOUND:
       raise vclib.ItemNotFound(path)
     raise
Esempio n. 3
0
    def get_location(self, path, rev, old_rev):
        try:
            results = repos.svn_repos_trace_node_locations(
                self.fs_ptr, path, rev, [old_rev], _allow_all)
        except core.SubversionException as e:
            if e.apr_err == core.SVN_ERR_FS_NOT_FOUND:
                raise vclib.ItemNotFound(path)
            raise
        try:
            old_path = results[old_rev]
        except KeyError:
            raise vclib.ItemNotFound(path)

        return _cleanup_path(_to_str(old_path))