Checkout Tools
  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Adjust swig-pl tests to have Test::Count markers and add a make target to

update the counts. Resolves issue #4236

* subversion/bindings/swig/perl/native/t/0use.t

subversion/bindings/swig/perl/native/t/1repos.t

subversion/bindings/swig/perl/native/t/2fs.t

subversion/bindings/swig/perl/native/t/3client.t

subversion/bindings/swig/perl/native/t/4pool.t

subversion/bindings/swig/perl/native/t/5delta.t

subversion/bindings/swig/perl/native/t/5delta-compat.t

subversion/bindings/swig/perl/native/t/6ra.t

subversion/bindings/swig/perl/native/t/7editor.t

subversion/bindings/swig/perl/native/t/8lock.t

Add '# TEST' markers.

* subversion/bindings/swig/perl/native/Makefile.PL.in

(update_test_counts): Add target.

  1. … 10 more files in changeset.
* subversion/bindings/swig/perl/native/Core.pm

* subversion/bindings/swig/perl/native/Fs.pm

* subversion/bindings/swig/perl/native/Repos.pm

* subversion/bindings/swig/perl/native/t/4pool.t

* subversion/bindings/swig/perl/native/t/5delta.t

* subversion/bindings/swig/perl/native/t/5delta-compat.t

* subversion/bindings/swig/perl/native/t/3client.t

* subversion/bindings/swig/perl/native/t/1repos.t

* subversion/bindings/swig/perl/native/t/2fs.t

* subversion/bindings/swig/perl/native/t/0use.t

* subversion/bindings/swig/perl/native/Wc.pm

* subversion/bindings/swig/perl/native/Delta.pm

* subversion/bindings/swig/perl/native/Base.pm

* subversion/bindings/swig/perl/native/Client.pm

* subversion/bindings/swig/perl/native/Ra.pm

Apply svn:eol-style native property.

  1. … 14 more files in changeset.
In subversion/bindings/swig/perl/native: Whitespace cleanups.

Untabify. (Various instances seemed to be 2- and 4-space tabs, though

most were 8-space.) Kill trailing whitespace. Enforce

no-space-before-( in function calls. A few other indentation fixes as

I came across them. I kept the 4-space convention here, rather than

convert to 2-space, because 4-space seems to be pretty well established

in this dir.

No non-whitespace changes. svn diff -x-w is empty.

* Makefile.PL.in

* Base.pm

* Client.pm

* Core.pm

* Delta.pm

* Fs.pm

* Repos.pm

* Ra.pm

* t/1repos.t

* t/2fs.t

* t/4pool.t

* t/3client.t

* t/5delta.t

* t/5delta-compat.t

* t/7editor.t

* t/8lock.t

* scripts/fast_svnbase.pl

* scripts/compile_all.pl:

Whitespace fixes.

  1. … 17 more files in changeset.
More license cleanup, this time in the swig-pl bindings.

[ in subversion/bindings/swig/perl/native/ ]

* t/4pool.t,

t/7editor.t,

t/5delta.t,

t/5delta-compat.t,

t/8lock.t,

t/3client.t,

t/6ra.t,

t/1repos.t,

t/2fs.t,

t/0use.t,

Fs.pm,

Wc.pm,

Makefile.PL.in:

Add the ALv2 blurb.

  1. … 12 more files in changeset.
[ In subversion/bindings/swig/perl/native/t ]

* 2fs.t, 6ra.t

Correct the count of skipped tests, so that the pre-revprop-change

tests will be skipped correctly on Windows. Also remove unnecessary

check for Mac OS 9. (Subversion doesn't support Mac OS 9.)

  1. … 1 more file in changeset.
Upgrade the SWIG/perl bindings to support binary properties, including

null bytes. In swigutil_pl.c, we no longer treat "svn_string_t" objects

as null-terminated strings; instead, we look at the length parameter of

the string to determine its length.

Patch by: Geoff Richards <qef@ungwe.org>

me

[ In subversion/bindings/swig/perl ]

* libsvn_swig_perl/swigutil_pl.c

(svn_swig_pl_callback_thunk): Add 't' format code for svn_string_t

datatype.

(thunk_change_dir_prop, thunk_change_file_prop): Use 't' format code

for svn_string_t objects.

(thunk_get_wc_prop): Don't treat the return value of get_wc_prop as a

null-terminated string when we convert it into an svn_string_t;

instead, look at its length field.

* native/t/6ra.t, native/t/2fs.t:

Add a bunch of tests for binary properties. Add additional checks

throughout. Fix a few spots where the indentation was off. Some of

the new tests are skipped on Windows because they are dependent

on a pre-revprop-change hook. The pre-revprop-change hook is a bit

trickier to setup on Windows and Mac OS 9, so I've punted on that for

now by skipping the tests on those platforms.

  1. … 2 more files in changeset.
Minor corrections to the Perl binding in SVN::Fs, with tests.

Patch by: Geoff Richards <qef@ungwe.org>

* subversion/bindings/swig/perl/native/Fs.pm

(_p_svn_fs_t): add missing 'path' method to bind svn_fs_path.

(_p_svn_fs_root_t): add new method 'txn_name' as binding for

svn_fs_txn_root_name.

* subversion/bindings/swig/perl/native/t/2fs.t:

added tests for the new path() and txn_name() methods, and

also for the previously untested function SVN::Fs::type().

  1. … 1 more file in changeset.
Make perl bindings testsuite clean up its subdirs from /tmp.

Submitted by: Peter Samuelson <peter@p12n.org>

* subversion/bindings/swig/perl/native/t/1repos.t,

subversion/bindings/swig/perl/native/t/2fs.t,

subversion/bindings/swig/perl/native/t/3client.t,

subversion/bindings/swig/perl/native/t/4pool.t,

subversion/bindings/swig/perl/native/t/6ra.t,

subversion/bindings/swig/perl/native/t/7editor.t,

subversion/bindings/swig/perl/native/t/8lock.t:

Pass CLEANUP => 1 to File::Temp::tempdir().

  1. … 6 more files in changeset.