user1553605
user1553605

Reputation: 1393

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 "..." does not exist in revision 0.

Upvotes: 4

Views: 849

Answers (1)

jhasse
jhasse

Reputation: 2593

You need to set base_revision_for_url:

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

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

Upvotes: 2

Related Questions