サンプルコードは次のとおりです。
import pysvn
svnClient = pysvn.Client()
entry = svnClient.info('C:\\MyLibrary\\')
entry.url
headrev = svnClient.info(entry.url).revision.number
最後の行でエラーが発生します。entry.url は正しいようです: その値は
u'file:///G:/MyRepository/branches/branch_3.0'
最後の行を実行すると、
Traceback (most recent call last): File "<stdin>", line 1, in <module> pysvn._pysvn_2_7.ClientError: 'file:\G:\MyRepository\branches' is not a working copy 'C:\Python27\file:\G:\MyRepository\branches' does not exist
WindowsでPython 2.7を使用しています(エラーメッセージから明らかです:-)。
些細なことである必要がありますが、それを機能させる方法がわかりません。何か案は?
ありがとう。