我試圖使用Python SVN綁定(pysvn)做一個倉庫的出口,我遇到了以下錯誤:如何在使用pysvn嘗試SVN導出時解決此錯誤?
python: subversion/libsvn_subr/dirent_uri.c:955: svn_dirent_join: Assertion `svn_dirent_is_canonical(base, pool)' failed.
Aborted (core dumped)
的示例代碼:
import pysvn
client = pysvn.Client()
uri = 'https://svn.mycompany.com/myproject/trunk/'
# This works fine
print client.list(uri)
# This crashes with the above error
r = client.export(uri, './temp', force=True)
但是,這樣做來自shell提示符的svn export --force https://svn.mycompany.com/myproject/trunk/
沒有問題。
我使用:
- 的Python 2.7.3
- 顛覆1.7.5
- 的CentOS 6.0 x64的
任何想法,請?
如果你嘗試用絕對路徑,而不是./temp什麼? subversion/libsvn_subr/dirent_uri.c:955行是assert(svn_dirent_is_canonical(base,pool));所以問題是與路徑格式 – 2012-07-24 09:08:39