subversion

Checkout Tools
  • last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge the ctypes-python-bindings branch to trunk.

Thread: http://svn.haxx.se/dev/archive-2008-09/0830.shtml

On the 'ctypes-python-bindings' branch:

Python 3 compatibility:

Don't use 'has_key'.

* csvn/txn.py

(Txn._check_path, _txn_operation.open): Use 'in' instead of 'has_key'.

On the 'ctypes-python-bindings' branch:

* setup.py (build, initialize_options, finalize_options, get_apr_config,

build_functions_py): Extended the setup.py script to handle a new ldflags

option for passing these on to the ctypesgen.

In the ctypes-python-bindings branch: Make sure that platform-specific functions

are available, even if we run ctypesgen on older versions of Subversion, which

don't know about ctypesgen. This is only necessary for compatibility with

Subversion 1.5 and earlier.

* csvn/core/__init__.py: Update as described above.

In the ctypes-python-bindings branch:

* TODO: Update to reflect that we plan to accomplish these tasks after

we merge the ctypes-python-bindings to trunk. Also, remove autogen.sh

--release task, because I don't think we should include pregenerated

Python headers in the Subversion tarball.

On the 'ctypes-python-bindings' branch:

Extended setup.py to handle the clean, build and install of the

ctypes-python-bindings.

* TODO: Removed task this commit completes.

* setup.py

(build, clean): New classes.

(setup): Changed the name, version and added the cmdclass argument.

* autogen.py: Removed file.

* README: Updated the build documentation and added some install documentation.

Initial setup.py for building and installing the ctypes Python bindings.

On the 'ctypes-python-bindings' branch:

* .: Ignore build.

* setup.py: New file.

    • ?
    /branches/ctypes-python-bindings/setup.py
On the ctypes-python-bindings branch:

* TODO: Remove more completed tasks.

On the 'ctypes-python-bindings' branch:

* autogen.py: Updated the ctypesgen.py command to pass --no-macro-warnings.

In the ctypes-python-bindings branch:

* TODO

(): Remove completed tasks and fix typo.

Suggested by: arfrever

On the 'ctypes-python-bindings' branch:

Fix test failure in non-English locale.

* test/wc.py: Set C locale.

Updated wc.WC.export to no longer pass NULL for the peg_revision argument.

Without this fix, the bindings would not work for Subversion 1.6.x+.

* csvn/wc.py (WC.export): Created an svn_opt_revision_t argument to be

passed for the peg_revision argument instead of NULL.

Patch by: Jeremy Whitlock <jcscoobyrs@gmail.com>

In the ctypes-python-bindings branch: Add TODO file for tasks that need

to be completed before release.

* TODO: Add new file.

    • ?
    /branches/ctypes-python-bindings/TODO
On the 'ctypes-python-bindings' branch:

* autogen.py: Use ctypesgen.py instead of wrap.py.

On the 'ctypes-python-bindings' branch:

* autogen.py:

* example.py:

* log.py:

* test/localrepos.py:

* test/remoterepos.py:

* test/run_all.py:

* test/setup_path.py:

* test/svntypes.py:

* test/wc.py:

* trunkify.py: Add shebang lines.

* autogen.py:

* example.py:

* log.py:

* test/localrepos.py:

* test/remoterepos.py:

* test/run_all.py:

* test/setup_path.py:

* test/svntypes.py:

* test/wc.py: Set svn:executable.

In the ctypes-python-bindings branch.

* trunkify.py: Update example script to initialize itself using

svn_cmdline_init per r32005.

In the ctypes-python-bindings branch.

* log.py: Update example script to initialize itself using svn_cmdline_init

per r32005. Also change verbose to discover_changed_paths per r30346.

In the ctypes-python-bindings branch.

* example.py: Update example script to initialize itself using

svn_cmdline_init.

[ In the ctypes-python-bindings branch ]

* mucc.py

Initialize self using svn_cmdline_init per r32005. Also support propset

and propdel, bringing the functionality of this example script in line

with what is offered on trunk.

In the ctypes-python-bindings branch: Don't call svn_cmdline_init or

do any other initialization at import time. Let users do the

initialization their own way instead.

This commit only updates the core library and the test suite. Example

scripts will be updated in separate commits.

Suggested by: epg

* csvn/core/__init__.py

(): Remove call to svn_cmdline_init. Remove application_pool.

(Pool.__init__, Pool.destroy): Remove all references to application_pool.

* test/setup_path.py

Update test suite to do its own initialization using svn_cmdline_init.

In the ctypes-python-bindings branch: Support propdel.

* csvn/txn.py

(Txn.propdel, _txn_operation.propdel): New method.

(_txn_operation.replay): Support propdel.

In the ctypes-python-bindings branch.

* csvn/repos.py

(RemoteRepository.log, _LogMessageReceiver.collect): Followup to r30346.

Change "verbose" to "discover_changed_paths" in a few more places, fixing

runtime errors.

On the ctypes-python-bindings branch.

* csvn/wc.py

(WC.__init__): Create default user objects when the method

is run, not at startup time.

(WC.diff, WC.export): Pass opt_revision_t objects to C functions

correctly (by reference), fixing crashes in test suite.

[ In the ctypes-python-bindings branch ]

* csvn/repos.py

(RemoteRepository.__init__, LocalRepository.__init__): Create default

user objects when the method is run, not at startup time.

On the 'ctypes-python-bindings' branch:

Follow-up to r31953:

* autogen.py: Use os.pathsep as PATH separator.

Found by: peters

Suggested by: djames

On the 'ctypes-python-bindings' branch:

Follow-up to r31953:

* autogen.py: Use os.path.join().

Suggested by: blair

On the 'ctypes-python-bindings' branch:

* autogen.py: Search PATH for ctypesgen.

On the ctypes-python-bindings branch.

* csvn/wc.py

(WC.delete): Remove unnecessary clear of iterpool.

On the ctypes-python-bindings branch: Update ctypes bindings to consistently

use paths in the internal style, therefore fixing bugs on Windows.

* csvn/wc.py

(WC.__init__): Convert input path from local style to internal style.

(WC._build_path): Convert paths to local style and back so that os.path.join

still works correctly.

* test/wc.py: Update all tests to use internal style for paths, and to assume

that all tests work on Windows.

In the ctypes-python-bindings branch: Fix Hash.__init__ to work in older versions of

Python.

* csvn/types.py

(Hash.__init__): As above.