l10n-report.py

Checkout Tools
  • last updated 3 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.
Add textual bar graphs to the translation status report.

* tools/po/l10n-report.py

(bar_graph): New function.

(main): Append a bar graph to each row of statistics.

Make translation status report message threaded.

Approved by: philip

* tools/po/l10n-report.py: Add "In-Reply-To:" and "References:" fields

to the translation status report message, so we can view mail more

clearly.

* tools/po/l10n-report.py (main): Construct the e-mail message with the

email module instead of cobbling it together manually.

Strip the output of 'svnversion' so that wc_version does not get

any extra trailing newlines, which causes bogus blank lines in the

message header list.

Move the from-addres and mail subject template to global scope.

Pre-compile the regular expression for .po files.

(l10nReport.match): Allow pattern to be a compiled regex.

* tools/po/l10n-report.py:

Force a blank line at the end of the headers, since I didn't

find where else that is done.

* tools/po/l10-report.py: Don't shout and be more specific.
* tools/po/l10n-report.py:

Avoid a magic string.

* tools/po/l10-report.py

(main): Fix syntax and drop extraneous \n.

Add some helpful headers to l10-report.py's output.

* tools/po/l10n-report.py

(svn:keywords): Set to 'all'.

(_rev): New helper.

(main): Include a couple of extra headers.

Reduce the external dependencies when sending mail from a helper script.

* tools/po/l10n-report.py

(main): Use the smtp library for sending mail, rather than shelling out

to 'sendmail'.

* tools/po/l10n-report.py

(l10nReport): Remove default TO address, and update FROM to apache domain.

(main): Update return email address to apache domain.

* tools/po/l10n-report.py

(main): Update the l10n-report tool to parse the correct info output

(and report in peg revision syntax).

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.
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.
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.
Added svn:executable flags to various Python files.

* build/generator/ezt.py,

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

tools/hook-scripts/verify-po.py,

tools/server-side/svn_server_log_parse.py,

tools/po/l10n-report.py,

packages/python-windows/setup.py:

Make all Python files with a Shebang executable.

Approved by: danielsh

  1. … 5 more files in changeset.
Add some missing svn:eol-style properties.

* www/toctool.py,

build/win32/make_gem.rb,

subversion/include/svn_compat.h,

subversion/include/svn_iter.h,

subversion/libsvn_diff/diff_memory.c,

subversion/libsvn_subr/iter.c,

subversion/bindings/javahl/native/ConflictResolverCallback.cpp,

subversion/bindings/javahl/native/DiffSummaryReceiver.cpp,

subversion/bindings/javahl/native/org_tigris_subversion_javahl_Version.cpp,

subversion/bindings/javahl/native/org_tigris_subversion_javahl_Path.cpp,

subversion/bindings/javahl/native/org_tigris_subversion_javahl_NativeResources.cpp,

subversion/bindings/javahl/native/CopySources.cpp,

subversion/bindings/javahl/native/RevisionRange.cpp,

subversion/bindings/javahl/native/ProgressListener.cpp,

subversion/bindings/javahl/native/ListCallback.cpp,

subversion/bindings/javahl/src/org/tigris/subversion/javahl/ConflictDescriptor.java,

subversion/bindings/javahl/src/org/tigris/subversion/javahl/ConflictResolverCallback.java,

subversion/bindings/javahl/src/org/tigris/subversion/javahl/BlameCallback2.java,

subversion/bindings/javahl/src/org/tigris/subversion/javahl/ListCallback.java,

subversion/bindings/swig/python/tests/delta.py,

subversion/bindings/swig/python/tests/wc.py,

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

subversion/bindings/swig/python/tests/ra.py,

subversion/bindings/swig/ruby/test/test-unit-ext/priority.rb,

subversion/bindings/swig/ruby/test/test-unit-ext/backtrace-filter.rb,

subversion/bindings/swig/ruby/test/test-unit-ext/always-show-result.rb,

subversion/bindings/swig/ruby/test/test-unit-ext/long-display-for-emacs.rb,

subversion/bindings/swig/ruby/test/test-unit-ext.rb,

subversion/tests/cmdline/svneditor.py,

subversion/tests/cmdline/depth_tests.py,

contrib/client-side/svn_update.pl,

contrib/hook-scripts/check-mime-type.pl,

tools/client-side/svn-graph.pl,

tools/dist/getsigs.pl,

tools/dist/write-announcement.py,

tools/hook-scripts/commit-email.rb,

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

tools/hook-scripts/svn2feed.py,

tools/bdb/whatis-rep.py,

tools/dev/contribulyze.py,

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

tools/examples/svnlog2html.rb,

tools/examples/svnlook.rb,

tools/examples/svnshell.rb,

tools/po/l10n-report.py,

packages/python-windows/setup.py:

Set svn:eol-style to native.

  1. … 45 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.
Replace hacky l10n status reporting shell scripts with a python script.

* tools/po/svn-po-status-report.sh

* tools/po/svn-po-status-run.sh

Delete (now obsolete).

* tools/po/l10n-report.py

New. Replaces the above 2.

Patch by: bhuvan

Suggested by: maxb

Tweaked by: me

Closes: issue #2614

  1. … 2 more files in changeset.