Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 213] New - revpropset fails since pysvn 1.9.0

pysvn
Discussion topic

Back to topic list

[Issue 213] New - revpropset fails since pysvn 1.9.0

Author helmutn
Full name Helmut Namyslo
Date 2019-01-17 00:56:30 PST
Message http://pysvn.tigris.​org/issues/show_bug.​cgi?id=213
                 Issue #|213
                 Summary|revpropset fails since pysvn 1.9.0
               Component|pysvn
                 Version|1.5.0
                Platform|All
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|extension
             Assigned to|barryscott
             Reported by|helmutn






------- Additional comments from helmutn at tigris dot org Thu Jan 17 00:56:28 -0800 2019 -------
The following code works fine if I use py27-pysvn-svn1814-1​.8.0-1667.exe
Since py27-pysvn-svn1815-1​.9.0-1846-Win32.exe it fails with the following error:

TypeError: PyCXX: Error creating object of type class Py::SeqBase<class
Py::Char> from <Revision kind=number XXX>

====================​====================​====================​=============
"""
This script works with py27-pysvn-svn1814-1​.8.0-1667.exe
and fails with later versions:

    TypeError: PyCXX: Error creating object of type class Py::SeqBase<class
Py::Char> from <Revision kind=number XXX>
"""
import pysvn

def main(url):
    client = pysvn.Client()

    logEntry = client.log(url, limit=1)[0]
    newMsg = logEntry.data['message'] + '\n====== CHANGE ======'

    rev = client.revpropset('svn:log', newMsg, url, logEntry.data['revision'])
    print rev
    print newMsg


if __name__ == '__main__':
    main("https://XXXXX") # enter a valid URL here
====================​====================​====================​=============

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[Issue 213] New - revpropset fails since pysvn 1.9.0 helmutn Helmut Namyslo 2019-01-17 00:56:30 PST
Messages per page: