python - Pysvn:propset() shows Path does not exist in revision 0 Error -


python script,

   root = "..."     commit_info = svncl.propset( "myprop",                                 "test",                                                                        root,                                 revision=pysvn.revision(pysvn.opt_revision_kind.head)) 

shows error, pysvn._pysvn_2_7.clienterror: path "..." not exist in revision 0.

you need set base_revision_for_url:

commit_info = svncl.propset(     "myprop", "test", root,     base_revision_for_url=svncl.revpropget("revision", root)[0].number ) 

see bug report reference: http://pysvn.tigris.org/issues/show_bug.cgi?id=146


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -