~luoyonggang/subvertpy/python3

« back to all changes in this revision

Viewing changes to subvertpy/repos.c

  • Committer: Yonggang Luo
  • Date: 2012-04-06 17:05:39 UTC
  • Revision ID: luoyonggang@gmail.com-20120406170539-6e1w3tk1ipsu2qx9
use svn_dirent_internal_style and svn_dirent_local_style

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                PyErr_SetString(PyExc_RuntimeError, "Unable to create fs config hash");
63
63
                return NULL;
64
64
        }
65
 
    RUN_SVN_WITH_POOL(pool, svn_repos_create(&repos,
66
 
                svn_path_canonicalize(path, pool), NULL, NULL,
67
 
                hash_config, hash_fs_config, pool));
 
65
        RUN_SVN_WITH_POOL(pool, svn_repos_create(&repos,
 
66
                                svn_dirent_internal_style(path, pool), NULL, NULL,
 
67
                                hash_config, hash_fs_config, pool));
68
68
 
69
69
        ret = PyObject_New(RepositoryObject, &Repository_Type);
70
70
        if (ret == NULL)
104
104
                return NULL;
105
105
        }
106
106
        Py_BEGIN_ALLOW_THREADS
107
 
        err = svn_repos_open(&ret->repos, svn_path_canonicalize(path, ret->pool),
108
 
                            ret->pool);
 
107
        err = svn_repos_open(&ret->repos, svn_dirent_internal_style(path, ret->pool),
 
108
                        ret->pool);
109
109
        Py_END_ALLOW_THREADS
110
110
 
111
111
        if (err != NULL) {