Checkout Tools
  • last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Work towards Python 3 compatibility. Since we already require Python 2.7+,

we can use the new syntax without further limiting our Python 2 support.

* contrib/client-side/incremental-update.py

* contrib/client-side/svn_apply_autoprops.py

* contrib/client-side/svnmerge/svnmerge-migrate-history.py

* contrib/client-side/svnmerge/svnmerge-migrate-history-remotely.py

* contrib/client-side/svnmerge/svnmerge.py

* contrib/client-side/svnmerge/svnmerge_test.py

* contrib/server-side/add-needs-lock.py

* contrib/server-side/fsfsfixer/fixer/fix-rev.py

* contrib/server-side/fsfsverify.py

* contrib/server-side/svn-tweak-author.py

* subversion/bindings/swig/python/tests/core.py

* subversion/bindings/swig/python/tests/repository.py

* subversion/tests/cmdline/svntest/actions.py

* subversion/tests/cmdline/svntest/main.py

* subversion/tests/cmdline/svntest/objects.py

* subversion/tests/cmdline/svntest/wc.py

* subversion/tests/cmdline/upgrade_tests.py

* tools/client-side/change-svn-wc-format.py

* tools/client-side/mergeinfo-sanitizer.py

* tools/dev/contribulyze.py

* tools/dev/gen-javahl-errors.py

* tools/dev/gen_junit_report.py

* tools/dev/graph-dav-servers.py

* tools/dev/iz/ff2csv.py

* tools/dev/iz/find-fix.py

* tools/dev/wc-ng/bump-to-19.py

* tools/dev/wc-ng/populate-pristine.py

* tools/dev/which-error.py

* tools/examples/get-location-segments.py

* tools/hook-scripts/svn2feed.py

* tools/hook-scripts/svnperms.py

* tools/po/l10n-report.py

* tools/server-side/fsfs-reshard.py

* tools/server-side/svn-backup-dumps.py

* tools/server-side/svnpredumpfilter.py

* tools/server-side/svnpubsub/daemonize.py

* tools/server-side/test_svn_server_log_parse.py

(): Replace all occurances of "except Type, variable:" with Python 3

style "except Type as variable".

  1. … 36 more files in changeset.
Fix spelling of committed everywhere.

* contrib/hook-scripts/enforcer/enforcer,

* notes/merge-tracking/func-spec.html,

* subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitInfo.java,

* subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItem.java,

* subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItemStateFlags.java,

* subversion/bindings/javahl/src/org/apache/subversion/javahl/callback/CommitMessageCallback.java,

* subversion/bindings/javahl/src/org/apache/subversion/javahl/types/ChangePath.java,

* subversion/bindings/javahl/src/org/apache/subversion/javahl/types/Revision.java,

* subversion/bindings/javahl/src/org/tigris/subversion/javahl/ChangePath.java,

* subversion/bindings/javahl/src/org/tigris/subversion/javahl/CommitItem.java,

* subversion/bindings/javahl/src/org/tigris/subversion/javahl/CommitItemStateFlags.java,

* subversion/bindings/javahl/src/org/tigris/subversion/javahl/CommitMessage.java,

* subversion/bindings/javahl/src/org/tigris/subversion/javahl/Revision.java,

* subversion/bindings/javahl/src/org/tigris/subversion/javahl/SVNClientInterface.java,

* subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNTests.java,

* subversion/bindings/javahl/tests/org/tigris/subversion/javahl/SVNTests.java,

* subversion/include/svn_repos.h,

* subversion/libsvn_client/mergeinfo.c,

* tools/hook-scripts/svnperms.py:

s/commited/committed/g.

  1. … 18 more files in changeset.
* tools/hook-scripts/svnperms.py: Allow whitespace in usernames if they

are quoted, e.g.:

[groups]

group1 = "Arthur Dent" Marvin 'Ford Prefect'

Teach svnperms.py to handle nested groups (though with no forward

declarations allowed at this time). (Issue #3087)

* tools/hook-scripts/svnperms.py

(Permission.parse_groups): Interpret tokens in a group's definition

that begin with '@' as group names, and recursively expand that

group.

* tools/hook-scripts/svnperms.conf.example

Tweak the sample to demonstrate this new nested group business.

Patch by: Kyle George <kgeorge@tcpsoft.com>

(Tweaked by me.)

  1. … 1 more file in changeset.
Move character-coding declaration lines in Python files back to the beginning

of the file where they need to be, after a licence message was inserted

before them in r882257. This fixes a failure to run the Python tests under

Python 2.5, which I noticed on the macosx buildbot.

* tools/hook-scripts/mailer/mailer.py

* tools/hook-scripts/svnperms.py

* subversion/bindings/swig/python/tests/trac/test.py

Move the "coding" line back to the beginning, just after the she-bang line.

  1. … 2 more files in changeset.
Apply ASF license headers to a number of files included under that license

but lacking said header.

Patch by: Niall Pemberton <niallp{_AT_}apache.org>

  1. … 175 more files in changeset.
Python 3 compatibility:

Try to use subprocess.getstatusoutput() instead of commands.getstatusoutput().

* tools/hook-scripts/svnperms.py: Try to use subprocess.getstatusoutput()

instead of commands.getstatusoutput().

Python 3 compatibility:

Don't use file.xreadlines().

* tools/hook-scripts/svnperms.py

(Config._read): Don't use file.xreadlines().

* tools/backup/hot-backup.py.in:

* tools/dev/which-error.py:

* tools/hook-scripts/mailer/mailer.py:

* tools/hook-scripts/svn2feed.py:

* tools/hook-scripts/svnperms.py: Declare UTF-8 encoding.

  1. … 4 more files in changeset.
Python 3 compatibility:

Use dict.keys(), dict.values() and dict.items() instead of dict.iterkeys(),

dict.itervalues() and dict.iteritems().

Use list(dict.keys()), list(dict.values()) and list(dict.items()) instead of

dict.keys(), dict.values() and dict.items(). Function calls with 'for', 'in' or

len() weren't updated.

* build/generator/ezt.py:

* build/generator/gen_base.py:

* build/generator/gen_vcnet_vcproj.py:

* build/generator/gen_win.py:

* build/win32/make_dist.py:

* gen-make.py:

* subversion/bindings/ctypes-python/csvn/types.py:

* subversion/bindings/ctypes-python/examples/log.py:

* subversion/bindings/ctypes-python/examples/trunkify.py:

* subversion/bindings/swig/python/tests/mergeinfo.py:

* subversion/bindings/swig/python/tests/ra.py:

* subversion/bindings/swig/python/tests/wc.py:

* subversion/tests/cmdline/externals_tests.py:

* subversion/tests/cmdline/svntest/actions.py:

* tools/bdb/svn-bdb-view.py:

* tools/dev/contribulyze.py:

* tools/dev/gen-javahl-errors.py:

* tools/dev/normalize-dump.py:

* tools/dev/trails.py:

* tools/dev/which-error.py:

* tools/examples/svnshell.py:

* tools/hook-scripts/mailer/mailer.py:

* tools/hook-scripts/svnperms.py: Use dict.keys(), dict.values() and

dict.items() instead of dict.iterkeys(), dict.itervalues() and

dict.iteritems(). Use list(dict.keys()), list(dict.values()) and

list(dict.items()) instead of dict.keys(), dict.values() and dict.items().

  1. … 22 more files in changeset.
Python 3 compatibility:

Update raise statements.

* build/generator/gen_base.py:

* subversion/bindings/swig/python/svn/repos.py:

* subversion/bindings/swig/python/tests/trac/versioncontrol/main.py:

* subversion/bindings/swig/python/tests/trac/versioncontrol/svn_fs.py:

* subversion/tests/cmdline/blame_tests.py:

* subversion/tests/cmdline/log_tests.py:

* tools/examples/get-location-segments.py:

* tools/hook-scripts/svnperms.py:

* tools/server-side/fsfs-reshard.py:

* tools/server-side/svn-backup-dumps.py:

* win-tests.py: Use 'raise exception("string")' instead of

'raise exception, "string"'.

  1. … 10 more files in changeset.
Python 3 compatibility:

Don't use 'has_key'.

* build/generator/ezt.py:

* build/generator/gen_base.py:

* build/generator/gen_win.py:

* gen-make.py:

* subversion/bindings/swig/python/svn/repos.py:

* subversion/bindings/swig/python/tests/client.py:

* subversion/bindings/swig/python/tests/ra.py:

* subversion/tests/cmdline/changelist_tests.py:

* subversion/tests/cmdline/info_tests.py:

* subversion/tests/cmdline/svntest/actions.py:

* subversion/tests/cmdline/svntest/entry.py:

* subversion/tests/cmdline/svntest/main.py:

* tools/backup/hot-backup.py.in:

* tools/bdb/erase-all-text-data.py:

* tools/bdb/svn-bdb-view.py:

* tools/client-side/change-svn-wc-format.py:

* tools/dev/contribulyze.py:

* tools/dev/normalize-dump.py:

* tools/dev/verify-history.py:

* tools/examples/blame.py:

* tools/hook-scripts/mailer/mailer.py:

* tools/hook-scripts/svnperms.py: Use 'in' instead of 'has_key'.

  1. … 21 more files in changeset.
* build/buildcheck.sh:

* build/PrintPath:

* build/getversion.py:

* build/install-sh:

* subversion/tests/cmdline/svnadmin_tests.py:

* subversion/tests/cmdline/log_tests.py:

* subversion/tests/cmdline/trans_tests.py:

* subversion/tests/cmdline/svnlook_tests.py:

* subversion/tests/cmdline/switch_tests.py:

* subversion/tests/cmdline/externals_tests.py:

* subversion/tests/cmdline/diff_tests.py:

* subversion/tests/cmdline/copy_tests.py:

* subversion/tests/cmdline/stat_tests.py:

* subversion/tests/cmdline/svnversion_tests.py:

* subversion/tests/cmdline/prop_tests.py:

* subversion/tests/cmdline/basic_tests.py:

* subversion/tests/cmdline/update_tests.py:

* subversion/tests/cmdline/utf8_tests.py:

* subversion/tests/cmdline/commit_tests.py:

* subversion/tests/cmdline/schedule_tests.py:

* subversion/tests/cmdline/merge_tests.py:

* subversion/tests/cmdline/getopt_tests.py:

* contrib/client-side/svn_all_diffs.pl:

* contrib/client-side/search-svnlog.pl:

* contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in:

* contrib/cgi/mirror_dir_through_svn.cgi:

* tools/client-side/showchange.pl:

* tools/dist/dist.sh:

* tools/hook-scripts/commit-access-control.pl.in:

* tools/hook-scripts/svnperms.py:

* tools/hook-scripts/mailer/mailer.py:

* tools/hook-scripts/mailer/tests/mailer-init.sh:

* tools/hook-scripts/mailer/tests/mailer-t1.sh:

* tools/hook-scripts/mailer/tests/mailer-tweak.py:

* tools/hook-scripts/commit-email.pl.in:

* tools/dev/stress.pl:

* tools/dev/gnuify-changelog.pl:

* tools/dev/prebuild-cleanup.sh:

* tools/examples/dumpprops.py:

* tools/examples/check-modified.py:

* tools/examples/svnlook.py:

* tools/examples/svnshell.py:

* tools/examples/geturl.py:

* tools/examples/putfile.py:

* tools/examples/revplist.py:

* tools/examples/getfile.py:

* tools/examples/blame.py:

* doc/tools/bin/run-fop.sh:

* autogen.sh:

* gen-make.py:

Set svn:executable property to "*".

  1. … 49 more files in changeset.
Channeling Erik Hülsmann, remove all trailing whitespace within our source

tree:

for extsn in c h cpp java py pl rb; do

sed -i -e 's/[ \t]*$//' `find . -name "*.$extsn" | xargs grep '[ \t]$' -l`

done

Inspired by: ehu

  1. … 449 more files in changeset.
For every getopt-using Python script which does not already do so,

use GNU-style getopt if available.

* gen-make.py

* tools/hook-scripts/log-police.py

* tools/hook-scripts/svnperms.py

* tools/dev/contribulyze.py

* tools/dev/iz/ff2csv.py

* tools/dev/iz/find-fix.py

* tools/dev/lock-check.py

* tools/dev/scramble-tree.py

* tools/examples/dumpprops.py

* tools/examples/revplist.py

* tools/examples/putfile.py

* tools/examples/getfile.py

* tools/examples/blame.py

* contrib/client-side/svnmerge.py

* contrib/hook-scripts/svn2rss.py

* build/win32/make_dist.py

  1. … 15 more files in changeset.
* tools/hook-scripts/svnperms.py: Changing my own email.

Patch by: Marc Sherman <msherman@projectile.ca>

* tools/hook-scripts/svnperms.py

(Config._read): add support for section inheritance in the conf file,

with syntax [SECTION extends PARENTSECTION] (the parent section is

optional)

* tools/hook-scripts/svnperms.conf.example: add an example of

inheritance

  1. … 1 more file in changeset.
Change "#!/usr/bin/env python2" to "#!/usr/bin/env python" everywhere.

"python2" is not a standard name - by using it, we are more likely to force

users to have to edit our scripts to point them at a real Python interpreter,

than to help our scripts work out of the box.

* contrib/hook-scripts/pre-commit-check.py:

* tools/hook-scripts/svnperms.py:

* tools/hook-scripts/mailer/mailer.py:

* tools/hook-scripts/mailer/tests/mailer-tweak.py:

* tools/dev/iz/ff2csv.py:

* tools/dev/lock-check.py:

* tools/dev/scramble-tree.py:

* tools/examples/putfile.py:

* tools/examples/revplist.py:

* tools/examples/dumpprops.py:

* tools/examples/svnlook.py:

* tools/examples/svnshell.py:

* tools/examples/getfile.py:

* tools/examples/blame.py:

* tools/examples/geturl.py:

Change "#!/usr/bin/env python2" to "#!/usr/bin/env python".

  1. … 14 more files in changeset.
* tools/hook-scripts/svnperms.py

As this script requires Python 2+, changed binary referenced by

shebang line from "python" to "python2".

(MissingArgumentsException): Thrown when required arguments are

missing.

(parse_options, main): Actually made intended use of "missingopts"

local variable to record required options which were missing from

the argument list (-r and either -t or -R). Caught

MissingArgumentsException in main() to provide the USAGE message on

stderr in addition to the list of missing but required options.

Spurred by Jim Sokoloff's patch to print usage when no options were

given on the commandline.

Apply patch from issue #1413:

* tools/hook-scripts/commit-access-control.pl.in,

tools/hook-scripts/propchange-email.pl,

tools/hook-scripts/commit-email.pl.in,

tools/hook-scripts/svnperms.py: Use '/usr/bin/env <interpreter>'

instead of '/usr/bin/<interpreter>' in shebang lines.

  1. … 3 more files in changeset.
Add keywords to some files. This resolves issue #1182.

Patch by: Peter Gervai <grin@tolna.net>

* tools/hook-scripts/commit-access-control.pl,

tools/hook-scripts/mailer.py, tools/hook-scripts/svnperms.py:

tools/hook-scripts/mailer.conf.example, tools/hook/scripts/README:

Insert keywords at the beginning of the files, same way

commit-email.pl and propchange-email.pl already have them. The

Python scripts get multiline keywords, others get oneliners, to help

break^H^H^H^Htest both formats.

  1. … 6 more files in changeset.
* Just about everything else that wasn't test output, a binary file,

or already to set to CRLF: Set svn:eol-style to native.

  1. … 658 more files in changeset.
* hook-scripts/svnperms.py

(SVNLook._add_txnrev): Use -r/-t parameters, instead of rev/txn.

* hook-scripts/svnperms.py

(SVNLook._execsvnlook): Fix svnlook parameters (reordered).

* tools/hook-scripts/svnperms.py

(Config): Respect case of option keys.

* tools/hook-scripts/svnperms.py

(check_perms): svnlook returns "D" for removed items, not "R".

* tools/hook-scripts/svnperms.py

(Config.walk): Return a list instead of yielding values. This avoids

importing generators "from the future", and allows usage of pre-2.2

python interpreters.

* tools/hook-scripts/svnperms.py,

tools/hook-scripts/svnperms.conf.example: New access control script

and sample conf file from Gustavo Niemeyer <niemeyer@conectiva.com>.

* tools/hook-scripts/README: Mention svnperms.py. Reorganize a bit.

* mailer.conf.example, commit-access-control.cfg.example: Renamed

these from mailer.conf.dist and commit-access-control.cfg, for

consistency.

  1. … 6 more files in changeset.