erase-all-text-data.py

Checkout Tools
  • last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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:

Use input() instead of raw_input() when using Python 3.

(input() was renamed to eval(input()), raw_input() was renamed to input().)

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

(main): Use input() instead of raw_input() when using Python 3.

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:

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.
For all executable Python scripts:

- set svn:executable if not already set.

- add/change shebang to '#!/usr/bin/env python' if not already that.

* build/generator/extractor.py

* build/strip-po-charset.py

* build/run_tests.py

* subversion/libsvn_subr/genctype.py

* tools/test-scripts/svntest/encode-base64.py

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

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

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

* tools/bdb/whatis-rep.py

* tools/dev/mlpatch.py

* tools/dev/verify-history.py

* tools/dev/normalize-dump.py

* tools/examples/check-modified.py

* contrib/hook-scripts/case-insensitive.py

* contrib/hook-scripts/check-case-insensitive.py

* contrib/server-side/authz_svn_group.py

  1. … 15 more files in changeset.
Set svn:eol-style='native' on some text files that were lacking it.

  1. … 44 more files in changeset.
Make the tools/bdb tools more concise to use in interactive Python sessions.

* tools/bdb/svnfs.py (Ctx): Merge the open() method into __init__.

* tools/bdb/svn-bdb-view.py: Adapt to the above change.

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

  1. … 2 more files in changeset.
Add a script which wipes out the text data for every file in a bdb repository.

This might be useful for converting a repository containing confidential code

into a distributable bug reproduction testcase.

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