Checkout Tools
  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates

Changeset 891679 is being indexed.

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.
Extend "mailer.py" with an option "search_logmsg=REGEXP" to allow filtering

based on matching expressions in the log message such as bug id's.

Patch by: Justin Vallon <justin.vallon{_AT_}deshaw.com>

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

Add documentation and an example of the new configuration options.

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

(Commit): Pass the log message to the which_groups() call.

(PropChange, Lock): Pass no log message to the which_groups() call.

(Config): Parse the new option and extend the which_groups() function

to include groups specified through matching the log message.

* tools/hook-scripts/mailer/tests/mailer.conf

(bugtracker): New section with the new configuration options.

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

Put some example bug id's into some of the commit messages.

* tools/hook-scripts/mailer/tests/mailer-t1.output

Adjust for the additions and changes to the expected output.

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. … 172 more files in changeset.
Add four X-* headers to mailer.py generated emails to allow clients to

filter on them.

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

(MailedOutput.mail_headers):

Add four headers:

X-Svn-Commit-Project: the matching group name

X-Svn-Commit-Author: the author

X-Svn-Commit-Revision: the revision

X-Svn-Commit-Repository: the basename of the repository

Patch by: J Robert Ray <jrobertray@gmail.com>

Tweaked by: me

Use 'while True' instead of 'while 1'.

* build/generator/ezt.py:

* build/generator/gen_base.py:

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

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

* subversion/tests/cmdline/info_tests.py:

* subversion/tests/cmdline/log_tests.py:

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

* tools/bdb/skel.py:

* tools/dev/normalize-dump.py:

* tools/dev/po-merge.py:

* tools/dev/svn-merge-revs.py:

* tools/dev/verify-history.py:

* tools/dev/which-error.py:

* tools/examples/blame.py:

* tools/examples/getfile.py:

* tools/examples/svnlook.py:

* tools/examples/svnshell.py:

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

* tools/hook-scripts/verify-po.py: Use 'while True' instead of 'while 1'.

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

Don't use deprecated members of types module.

* build/generator/ezt.py:

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

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

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

* tools/bdb/skel.py: Don't use deprecated members of types module.

* tools/hook-scripts/mailer/mailer.py: Don't import types module.

  1. … 5 more files in changeset.
* build/generator/gen_vcnet_vcproj.py

(Generator.makeguid): Delete code used only by Python 1.*.

* subversion/bindings/ctypes-python/README

(BUILDING CSVN): Update.

* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c

(): Don't define Py_RETURN_NONE.

* subversion/tests/cmdline/info_tests.py

(match_xml_element): Directly compare dictionaries.

(same_dict): Delete.

* tools/client-side/server-version.py: Delete probably outdated comment.

* tools/hook-scripts/mailer/mailer.py: Delete code used only by Python <2.3.

  1. … 5 more files in changeset.
Use sorted() to simplify some code.

* build/generator/gen_base.py:

* build/generator/gen_make.py:

* build/generator/gen_vcnet_vcproj.py:

* build/win32/make_dist.py:

* doc/tools/bin/find-xsl.py:

* gen-make.py:

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

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

* subversion/tests/cmdline/changelist_tests.py:

* subversion/tests/cmdline/svnadmin_tests.py:

* subversion/tests/cmdline/svnlook_tests.py:

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

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

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

* tools/dev/contribulyze.py:

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

* tools/dev/normalize-dump.py:

* tools/dev/which-error.py:

* tools/examples/svnshell.py:

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

* tools/po/l10n-report.py: Use sorted() to simplify some code.

  1. … 20 more files in changeset.
Delete code used only by Python <2.4.

* build/generator/util/executable.py:

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

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

* subversion/tests/cmdline/update_tests.py:

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

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

* tools/hook-scripts/verify-po.py: Delete code used only by Python <2.4.

  1. … 6 more files in changeset.
Follow-up to r34959:

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

(OutputBase.run): Try to use subprocess module.

Python 3 compatibility:

Don't assing values to True/False keywords.

* build/generator/gen_make.py:

* build/generator/gen_msvc_dsp.py:

* build/generator/gen_vcnet_vcproj.py:

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

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

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

* tools/dev/contribulyze.py:

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

* tools/hook-scripts/mailer/mailer.py: Don't assing values to True/False keywords.

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

Try to use urllib.parse.* and urllib.request.* instead of urllib.* and urllib2.*.

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

* tools/dev/contribulyze.py:

* tools/dev/mlpatch.py:

* tools/dist/post-to-tigris.py:

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

* tools/server-side/svn_server_log_parse.py:

* tools/server-side/test_svn_server_log_parse.py: Try to use urllib.parse.* and

urllib.request.* instead of urllib.* and urllib2.*.

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

Try to use subprocess module in 'tools' directory.

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

* tools/hook-scripts/verify-po.py: Try to use subprocess module.

* tools/backup/hot-backup.py.in: Fix a typo.

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

Import io.StringIO when using Python 3.

* build/generator/gen_win.py:

* subversion/bindings/ctypes-python/test/wc.py:

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

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

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

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

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

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

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

* tools/hook-scripts/mailer/mailer.py: Import io.StringIO when using Python 3.

  1. … 9 more files in changeset.
* 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:

Update calls to print() in 'tools' directory.

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

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

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

* tools/bdb/whatis-rep.py:

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

* tools/client-side/server-version.py:

* tools/dev/check-license.py:

* tools/dev/contribulyze.py:

* tools/dev/datecheck.py:

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

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

* tools/dev/iz/ff2csv.py:

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

* tools/dev/mlpatch.py:

* tools/dev/normalize-dump.py:

* tools/dev/po-merge.py:

* tools/dev/random-commits.py:

* tools/dev/scramble-tree.py:

* tools/dev/svn-merge-revs.py:

* tools/dev/verify-history.py:

* tools/dev/which-error.py:

* tools/dist/gen_nightly_ann.py:

* tools/dist/getsigs.py:

* tools/dist/post-to-tigris.py:

* tools/dist/write-announcement.py:

* tools/examples/blame.py:

* tools/examples/check-modified.py:

* tools/examples/dumpprops.py:

* tools/examples/getfile.py:

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

* tools/examples/geturl.py:

* tools/examples/putfile.py:

* tools/examples/revplist.py:

* tools/examples/svnlook.py:

* tools/examples/svnshell.py:

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

* tools/hook-scripts/svn2feed.py:

* tools/po/l10n-report.py:

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

* tools/server-side/svn-backup-dumps.py: Call print() or file.write().

  1. … 39 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:

Use list comprehensions or list(filter()) instead of filter().

* build/generator/gen_win.py:

* build/run_tests.py:

* subversion/tests/cmdline/changelist_tests.py:

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

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

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

* tools/examples/svnshell.py:

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

* win-tests.py: Use list comprehensions or list(filter()) instead of filter().

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

Use list comprehensions or list(map()) instead of map().

* build/generator/gen_base.py:

* build/generator/gen_make.py:

* build/generator/gen_vcnet_vcproj.py:

* build/generator/gen_win.py:

* build/generator/swig/header_wrappers.py:

* build/run_tests.py:

* subversion/tests/cmdline/changelist_tests.py:

* subversion/tests/cmdline/checkout_tests.py:

* subversion/tests/cmdline/getopt_tests.py:

* subversion/tests/cmdline/merge_tests.py:

* subversion/tests/cmdline/svnadmin_tests.py:

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

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

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

* subversion/tests/cmdline/tree_conflict_tests.py:

* tools/bdb/skel.py:

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

* tools/dev/svn-merge-revs.py:

* tools/dist/write-announcement.py:

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

* win-tests.py: Use list comprehensions or list(map()) instead of map().

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

Use str.join() instead of string.join().

* build/generator/gen_base.py:

* build/generator/gen_make.py:

* build/generator/gen_vcnet_vcproj.py:

* build/generator/gen_win.py:

* build/generator/swig/header_wrappers.py:

* subversion/libsvn_subr/genctype.py:

* subversion/tests/cmdline/commit_tests.py:

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

* tools/examples/svnshell.py:

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

* tools/hook-scripts/mailer/tests/mailer-t1.sh: Use str.join() instead of

string.join().

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

Use str.split() instead of string.split().

* build/generator/ezt.py:

* build/generator/gen_base.py:

* build/generator/gen_win.py:

* build/generator/swig/header_wrappers.py:

* build/generator/util/executable.py:

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

* tools/examples/svnshell.py:

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

* win-tests.py: Use str.split() instead of string.split().

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

Use str.rfind() instead of string.rfind().

* build/generator/gen_base.py:

* tools/dev/verify-history.py:

* tools/examples/svnshell.py:

* tools/hook-scripts/mailer/mailer.py: Use str.rfind() instead of

string.rfind().

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

Try to import configparser module.

(ConfigParser was renamed to configparser.)

* build/generator/gen_base.py:

* build/generator/gen_make.py:

* build/generator/swig/__init__.py:

* build/win32/make_dist.py:

* gen-make.py:

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

* win-tests.py: Try to import configparser module.

  1. … 6 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.
* tools/hook-scripts/mailer/mailer.py

(OutputBase): Fix typo in docstring. Obvious fix.

* 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. … 46 more files in changeset.
Revert property change diff feature code (r21695, r21684). I spoke

against this approach on the list back in September of 2006 (WHOA!),

and just now realized that it was still present in our trunk code.

As I indicated in discussion with Matthias Weinert <wein@mccw.de> (see

archives here: http://svn.haxx.se/dev/archive-2006-09/0978.shtml), I

like the idea of doing a better job of showing property changes, but

the approach taken was, in my opinion, far too complex for the typical

user's needs, and visually overwhelming.

NOTE: I tried this reversion once already and made a message things.

In r26779, I undid my mess and restored these files to their

state as of r26776. So, sadly, this is actually my *second*

attempt at cleanly reverting the propchange diff code.

NOTE: The mailer.py tests are currently failing, but this was the

case prior to this change, too. I suspect the merge tracking

feature changes in core Subversion have thrown things off a bit.

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

* tools/hook-scripts/mailer/tests/mailer-t1.output,

* tools/hook-scripts/mailer/tests/mailer.conf,

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

Remove property diff feature and supporting code.

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

* tools/hook-scripts/mailer/tests/mailer-t1.output

* tools/hook-scripts/mailer/tests/mailer.conf

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

Restore all these to the way they looked in r26776.

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

Lose some commit conflict marker cruft.

[This change was later reverted, cleaned up, and recommitted; see r26780.]

Revert property change diff feature code (r21695, r21684). I spoke

against this approach on the list back in September of 2006 (WHOA!),

and just now realized that it was still present in our trunk code.

As I indicated in discussion with Matthias Weinert <wein@mccw.de> (see

archives here: http://svn.haxx.se/dev/archive-2006-09/0978.shtml), I

like the idea of doing a better job of showing property changes, but

the approach taken was, in my opinion, far too complex for the typical

user's needs, and visually overwhelming.

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

* tools/hook-scripts/mailer/tests/mailer-t1.output,

* tools/hook-scripts/mailer/tests/mailer.conf,

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

Remove property diff feature and supporting code.