5 years agoFix keep_revnum vs source_start_rev handling develop master
Tony Duckles [Sun, 13 Mar 2016 19:53:24 +0000]
Fix keep_revnum vs source_start_rev handling

5 years agoFix typo in README.mkd
Thomas Quinot [Tue, 9 Feb 2016 17:30:48 +0000]
Fix typo in README.mkd

6 years agoFix typo in comment
Tony Duckles [Sat, 19 Sep 2015 22:18:50 +0000]
Fix typo in comment

6 years agoMerge branch 'topic/LC_MESSAGES_C' of git:// into develop
Tony Duckles [Sat, 19 Sep 2015 22:00:26 +0000]
Merge branch 'topic/LC_MESSAGES_C' of git:// into develop

6 years agoSet LC_MESSAGES to C
Thomas Quinot [Mon, 27 Jul 2015 15:27:43 +0000]

This is required to ensure that we get the expected standard English
output from the svn command line client, not some localized variant.

6 years agoDo not URL-encode '+' characters in repo URLs
Thomas Quinot [Mon, 27 Jul 2015 15:19:57 +0000]
Do not URL-encode '+' characters in repo URLs

These can legitimately appear in the schema name ("svn+ssh://") and
should not be escaped there.

7 years agoRevprop change Windows example
Dawid Ciecierski [Fri, 11 Apr 2014 04:03:06 +0000]
Revprop change Windows example

For completeness a plug-and-play version of a repository hook required
for preserving revision dates and authors.

7 years agoFix hardcoded line endings
Dawid Ciecierski [Fri, 11 Apr 2014 03:42:32 +0000]
Fix hardcoded line endings

A little change that makes the script compatible with the Windows
Subversion binary, which uses "\r\n" rather than "\n" line endings as it
does on Unix. With this change I had no problem using the tool under

8 years agoUpdate links to
Tony Duckles [Sat, 9 Feb 2013 02:17:46 +0000]
Update links to

Renamed /projects/ -> /code/ on my personal site. Updating external

9 years agoClean-up unit-tests
Tony Duckles [Sat, 13 Oct 2012 16:53:01 +0000]
Clean-up unit-tests

* Move to a stricter unit-test naming convention:
  * t1xxx-*.sh are the svnreplay tests.
  * t2xxx-*.sh are the svnancest tests.
* Support multi-jobbing unit-tests.  Make all the unit-tests
  multi-job safe, e.g. use unique repo's and wc's for each test.
* Ensure all test logic is run via assert's.
* Introduce "prove" Makefile target for unit-tests, to allow
  running all the tests multi-jobbed via prove.

9 years agoSupport caller-supplied wc_target path
Tony Duckles [Sat, 13 Oct 2012 18:13:23 +0000]
Support caller-supplied wc_target path

Introduce a "--wc" command-line argument to The
immediate need is so that we can use "prove" with multiple jobs to
parallelize running the unit-tests.

9 years agoRemove deprecated make-replay-repo script
Tony Duckles [Sat, 13 Oct 2012 16:12:25 +0000]
Remove deprecated make-replay-repo script

The t10?-replay-* scripts now cover all the cases (and then some)
that the make-replay-repo script tried to cover.

9 years agoMinor documentation tweaks
Tony Duckles [Thu, 27 Sep 2012 06:01:04 +0000]
Minor documentation tweaks

* svn2svn/run/ Minor tweaks to the documentation for
  some of the command-line args.
* README.mkd: Sync with the latest "--help" contents.

9 years agosvn2svn v1.7.0 v1.7.0
Tony Duckles [Sun, 23 Sep 2012 03:22:04 +0000]
svn2svn v1.7.0

9 years agoMisc documentation tweaks
Tony Duckles [Sun, 23 Sep 2012 03:19:40 +0000]
Misc documentation tweaks

* svn2svn/run/ (main): Include mention of arguments
  passed to the before-commit script.
* svn2svn/run/ (do_svn_add): Re-word comment for

9 years agoSupport before-commit hook option (--pre-commit)
Tony Duckles [Tue, 21 Aug 2012 04:05:51 +0000]
Support before-commit hook option (--pre-commit)

Allow the caller to optionally run a shell script before each
replayed commit. This could be useful if you wanted to modify the
replayed file/directory contents, e.g. strip-out a certain file at a
certain source revision, etc.

* svn2svn/run/ (commit_from_svn_log_entry): Support
  beforecommit hook.
* tests/t0103*: Add unit-tests for new --pre-commit option.

* svn2svn/run/ (main): Minor tweaks to command-line
  argument help-text.
* svn2svn/ (_run_raw_command): Fix typo

9 years agoInclude --verify-all test-cases
Tony Duckles [Tue, 14 Aug 2012 05:37:56 +0000]
Include --verify-all test-cases

Include a --verify-all test-case for all the t01??.sh unit-tests, to
run the self-test that the replay ran correctly.

9 years agoPurge tests/_wc_* during "make clean"
Tony Duckles [Tue, 14 Aug 2012 01:57:57 +0000]
Purge tests/_wc_* during "make clean"

As part of the "clean" Makefile target, purge any _wc_* directories
in the tests/ folder. Each of the individual unit-test scripts
*should* take care of purging these _wc_* folders, but include in
the Makefile just as a catch-all.

9 years agoDelete
Tony Duckles [Fri, 10 Aug 2012 03:41:02 +0000]

This code was refactored to create the more-generally-callable script which allows comparing two arbitrary URLs.

9 years agoCreate _repo_ref if needed
Tony Duckles [Fri, 10 Aug 2012 03:38:06 +0000]
Create _repo_ref if needed

Add Makefile targets and prereq's to call to build
_repo_ref if it doesn't already exist. This way, "make all" in a
freshly-cloned Git copy will automagically build the _repo_ref repo,
which is needed for the svnreplay-based tests.

9 years agoFix t0001-diff-repo test descriptions
Tony Duckles [Fri, 10 Aug 2012 03:37:19 +0000]
Fix t0001-diff-repo test descriptions

9 years agoMove shared code to
Tony Duckles [Fri, 10 Aug 2012 03:32:56 +0000]
Move shared code to

* tests/ (init_replay_repo): Move duplicated code from
  t01??*.sh scripts to create an empty repo for svnreplay to this
  shared function.
* tests/t010?*.sh: Use and init_replay_repo().

* tests/t010?*.sh: Respect $TEST_DIRECTORY shell variable rather
  than hard-coding `pwd`.

9 years agotest-lib: test_expect_failure() expected failure is ok
Tony Duckles [Fri, 10 Aug 2012 03:26:07 +0000]
test-lib: test_expect_failure() expected failure is ok

The Git test-lib test_expect_failure() behavior is to call separate
test_known_ok/test_known_broken_failure helper tags which puts the
"known failure" results into separate buckets. This is the opposite
of what I want. I want test_expect_failure() to be the true-opposite
of test_expect_success(): if we expect a test to fail (i.e. exit 1),
then say the test passed if the command failed.

* tests/ (test_expect_failure): Change
  test_expect_failure() to be the true-opposite of
  test_expect_success(): test succeeds if command exits with error

9 years agoImproved unit-tests
Tony Duckles [Thu, 9 Aug 2012 03:38:33 +0000]
Improved unit-tests

Refactor the old-style make-replay-repo/check-replay-repo scripts
into the new test framework, for easier Makefile-based testing.

9 years agoTest framework
Tony Duckles [Thu, 9 Aug 2012 03:36:45 +0000]
Test framework

Copy and modify parts of the Git test framework for usage here.

9 years agoUse proper exit-codes
Tony Duckles [Wed, 8 Aug 2012 13:21:21 +0000]
Use proper exit-codes

Use proper exit-codes, so shell-based callers can infer
success/failure of the command:
"exit 0" for success
"exit 1" for failure

9 years agoIntroduce 'svnancest' utility
Tony Duckles [Wed, 8 Aug 2012 03:00:26 +0000]
Introduce 'svnancest' utility

Introduce a helper utility for calling find_svn_ancestors(), to show
full ancestry ("svn copy" history) for a given starting URL
(optionally at a specific revision).

* svn2svn/run/ Adding
* svn2svn/run/ (in_svn, is_child_path, join_path,
  find_svn_ancestors): Move common helper functions to new separate
  library, for sharing with svn2svn/run/
* svn2svn/ (valid_svn_actions): Move this constant here
  from svn2svn/run/

9 years agoRename main utility from '' to ''
Tony Duckles [Sun, 5 Aug 2012 04:04:01 +0000]
Rename main utility from '' to ''

Rename the main utility executable for several reasons:
* Avoid overlapping with the 'svn2svn' module subdirectory.
* Make way for having other support utilities in the top-level folder.

9 years agosvn2svn v1.6.0 v1.6.0
Tony Duckles [Sun, 10 Jun 2012 15:21:18 +0000]
svn2svn v1.6.0

9 years agoProper quote-wrapping in test scripts
Tony Duckles [Wed, 11 Apr 2012 13:21:31 +0000]
Proper quote-wrapping in test scripts

Wrap all path-variable references in double-quotes, so that if `pwd`
contains spaces bash will interpret things correctly. For URLs,
replace spaces with %20, though that's the extent of the
URL-encoding we try to do in these simple shell scripts.

9 years agoBetter "svn list" handling
Tony Duckles [Thu, 12 Apr 2012 01:46:34 +0000]
Better "svn list" handling

* svn2svn/ (list, _parse_svn_list_xml): Add a tag for
proper "svn list --xml" handling.
* svn2svn/run/ Remove get_svn_dirlist() in favor of using
svnclient.list(). Replace all usages of run_svn("svn list") with
svnclient.list(), which eliminates all hacky .split("\n") cases.

* svn2svn/run/ (verify_commit): Move unconditioned "OK"
ui.status line behind an else, so that "OK" message isn't
incorrectly logged when "FAIL" message is logged.

9 years agoUse "--ignore-externals" for "svn update" and "svn export"
Tony Duckles [Thu, 12 Apr 2012 00:33:46 +0000]
Use "--ignore-externals" for "svn update" and "svn export"

* svn2svn/ (update/remove/export): Introduce wrapper
functions for update/remove/export. For update and remove, pass

* svn2svn/ Rename private functions to have a leading
* svn2svn/ Rename public functions to match svn
sub-command name: get_svn_info -> info, get_svn_status -> status,
get_prop_val -> propget, etc.

* svn2svn/run/ (verify_commit): Remove extraneous
safe_path() call. svnclient.run_svn_log() already handles this.

9 years agoCorrectly handle source_url/target_url with chars needing URL-encoding
Tony Duckles [Mon, 9 Apr 2012 00:45:30 +0000]
Correctly handle source_url/target_url with chars needing URL-encoding

Use urllib.unquote() to URL-decode source_url/target_url values.
All URLs passed to run_svn() should go through svnclient.safe_path()
and we don't want to end-up *double* urllib.quote'ing if the user-
supplied source/target URL's are already URL-encoded or have chars
which need URL-encoding.

* svn2svn/run/ (real_main): Maintain source_url/target_url
as URL-decoded values.
* svn2svn/run/ (gen_tracking_revprops, build_rev_map):
Translate "internal" source_url back to an "external" (URL-encoded)
* svn2svn/svnclient (parse_svn_info_xml): URL-decode 'url' and
'repos_url' values, since all downstream consumers should want these
to be in the "internal" (URL-decoded) format.
* tests/ Add test-cases to further stress-test

9 years agoREADME updates
Tony Duckles [Sun, 8 Apr 2012 01:24:23 +0000]
README updates

9 years agosvn2svn v1.5.0 v1.5.0
Tony Duckles [Sat, 7 Apr 2012 18:28:17 +0000]
svn2svn v1.5.0

9 years agoBetter path and URL encoding/escaping
Tony Duckles [Sat, 7 Apr 2012 18:21:03 +0000]
Better path and URL encoding/escaping

* svn2svn/ (safe_path): Creating to abstract building
paths which are safe to pass as svn command-line args. For URL's,
use urllib.quote() to URL-encode paths. For local paths, if file/dir
name includes "@", add a trailing "@" so svn doesn't get confused
about unintended text being parsed as a peg-revision.
* svn2svn/ Use safe_path() for all local and URL paths.
* svn2svn/run/ Use svnclient.safe_path() for all local
and URL paths.

9 years agoSkip ANSI escape color codes for NT
Tony Duckles [Sat, 7 Apr 2012 02:49:14 +0000]
Skip ANSI escape color codes for NT

* svn2svn/ (status): Don't try to write ANSI escape sequences
for color-mode for NT since cmd.exe doesn't support them.

9 years agoUse shell.rmtree
Tony Duckles [Sat, 7 Apr 2012 02:35:00 +0000]
Use shell.rmtree

* svn2svn/run/ Use rather than
shutil.rmtree, to fix Windows-compatibility issues.

9 years agoTest scripts require /bin/bash
Tony Duckles [Wed, 28 Mar 2012 01:07:30 +0000]
Test scripts require /bin/bash

* tests/make-*.sh: She-bang /bin/bash, not /bin/sh.

9 years agoFix tag documentation
Tony Duckles [Wed, 28 Mar 2012 01:03:01 +0000]
Fix tag documentation

* svn2svn/ (status): Fix documented default value of "truncate"

9 years agoChange verify-mode to report on all errors before raising exception
Tony Duckles [Sun, 25 Mar 2012 13:39:17 +0000]
Change verify-mode to report on all errors before raising exception

* svn2svn/run/ (verify_commit): Always finish a full pass,
writing out any error messages, and raise the VerificationError
exception at the end if needed.

* svn2svn/run/ (verify_commit): Make less verbose by
default. Show a progress message every 500 paths rather than logging
a message for every path.

9 years agoREADME updates
Tony Duckles [Sun, 25 Mar 2012 04:59:01 +0000]
README updates

9 years agoFix edge-case problem with continue handling for --keep-revnum mode
Tony Duckles [Sun, 25 Mar 2012 04:49:10 +0000]
Fix edge-case problem with continue handling for --keep-revnum mode

* svn2svn/run/ (real_main): Check for --keep-revnum
problem condition inside main loop rather than ahead, so that we
compare the last target_url revision to the *next* source_url rev to
be replayed, not the *last* source_url rev that was replayed.

* svn2svn/run/ (keep_revnum): Use BreakHandler to ensure
that "Committed revision ..." message is always shown if we ran a
keep-revnum mode "svn commit".

* svn2svn/run/ (real_main): Fix "Finished at source
revision ..." message to be more accurate, to display the last
source_url rev replayed. Previously, in some cases (e.g. keep-revnum
mode) this could display the *next* source_url rev to be replayed.

9 years agoDon't allow starting a fresh (non-continue) replay into a non-empty target directory...
Tony Duckles [Sun, 25 Mar 2012 04:26:02 +0000]
Don't allow starting a fresh (non-continue) replay into a non-empty target directory (by default)

* svn2svn/run/ (real_main): Prevent user from starting a
fresh replay into a non-empty target directory, since chances are
they wanted to do a continue instead. Introduce "--force" arg to
allow replaying into a non-empty target directory.

9 years agoDon't use parser.error() for error messages
Tony Duckles [Sun, 25 Mar 2012 04:21:41 +0000]
Don't use parser.error() for error messages

* svn2svn/run/ (real_main): Don't use parser.error() for
error messages.

* svn2svn/run/ (commit_from_svn_log_entry): Include source
revision # in "Committed revision ..." message, so output is still
useful in non-verbose mode.

* svn2svn/run/ (real_main): Rename "_tmp_wc_target" to
* "_wc_target_tmp" (keep-revnum temp WC), for "_wc_*" matching.

9 years agoURL encode user-supplied source_url and target_url
Tony Duckles [Sun, 25 Mar 2012 00:51:57 +0000]
URL encode user-supplied source_url and target_url

* svn2svn/run/ (real_main): URL encode user-supplied
source_url and target_url values.

9 years agoBe more quiet by default
Tony Duckles [Sat, 24 Mar 2012 20:15:19 +0000]
Be more quiet by default

* svn2svn/run/ (disp_svn_log_summary, real_main): Only
display source rev info for --verbose mode.

* svn2svn/run/ (commit_from_svn_log_entry): Move
"Committed revision %s." message down after the post-commit revprops
have been updated, since the commit+revprops are an atomic unit.

9 years agoFor options.keep_author, update via post-commit rev-prop
Tony Duckles [Sat, 24 Mar 2012 20:05:33 +0000]
For options.keep_author, update via post-commit rev-prop

Rather than using "svn commit --username %author%", mirror the
source author info by setting the "svn:author" revprop post-commit
the same as we do for "svn:date" (options.keep_date). This frees us
up to be able to use --username in the future for legitimate
source/target repo auth.

* svn2svn/run/ (commit_from_svn_log_entry): Update
  "svn:author" via post-commit revprop rather than --username.
* README.mkd: Reflect new "svn:author" handling.

9 years agoPrevent KeyboardInterrupt's during SVN commit
Tony Duckles [Sat, 24 Mar 2012 19:31:26 +0000]
Prevent KeyboardInterrupt's during SVN commit

* svn2svn/run/ Adding
* svn2svn/run/ (commit_from_svn_log_entry): Use
BreakHandler to ensure that "svn commit" and post-commit rev-prop
updating happen as an atomic unit.

9 years agoVerify-mode v1.4.0
Tony Duckles [Sat, 24 Mar 2012 18:45:29 +0000]

Add command-line args for verifying content and ancestry, i.e. for
self-testing the replay. Compare the source vs. target history to
make sure we ended-up with equivalent target revisions for each
applicable source revision.

* svn2svn/run/ (verify_commit): Adding.
* tests/ Add tests for source revisions which
we'll never have an equivalent target revision for, e.g.
svn:mergeinfo property changes.

9 years agoMore fixes to iter_svn_log_entries ancestry-handling
Tony Duckles [Fri, 16 Mar 2012 03:23:08 +0000]
More fixes to iter_svn_log_entries ancestry-handling

* svn2svn/ (iter_svn_log_entries): Correctly use and
respect ancestors() array: look for the next copyfrom_rev, and once
we crawl past the last copy-from then start at the final

* svn2svn/run/ (process_svn_log_entry): For action='R'
don't run "svn remove" command if path_offset="", i.e. don't try to
remove the root of the WC.

9 years agoFix iter_svn_log_entries ancestry-handling problems
Tony Duckles [Thu, 15 Mar 2012 03:41:00 +0000]
Fix iter_svn_log_entries ancestry-handling problems

Change return format of find_svn_ancestors() to include
copyfrom_path+copyfrom_rev info.  We need this in iter_svn_log_entries()
for correctly "svn log"'ing over only valid ancestry. Previously, we
were basically assuming that copyfrom_rev was always revision-1, and
trying to "svn log" on that revision-range can yield errors.

* svn2svn/run/ (find_svn_ancestors): Change return format
so that each entry in the array is a path+revision+copyfrom_path+copyfrom_rev
* svn2svn/run/ (do_svn_add): Minor changes to support new
find_svn_ancestors() return format.

* svn2svn/run/ (do_svn_add_dir): Fix local-not-remote
handling, to correctly handling directories.

9 years agoCorrectly crawl source_url's ancestry back to origin, if any
Tony Duckles [Thu, 15 Mar 2012 01:13:32 +0000]
Correctly crawl source_url's ancestry back to origin, if any

* svn2svn/ (iter_svn_log_entries): Support new optional
'ancestors' param. Use that to correctly grab revision-chunks,
following the ancestry history.
* svn2svn/run/ (join_path, in_ancestors): New functions.
* svn2svn/run/ (real_main): Use find_svn_ancestors() to get ancestry
of source_url and pass that to downstream functions.

9 years agoRefactor find_svn_ancestors() to make more generic
Tony Duckles [Tue, 6 Mar 2012 04:01:28 +0000]
Refactor find_svn_ancestors() to make more generic

* svn2svn/run/ (find_svn_ancestors): Make 'stop_base_path'
optional so this function can be used generally to get the full
ancestry history.

* svn2svn/ (get_first_svn_log_entry, get_last_svn_log_entry):
Add optional 'stop_on_copy' param and pass through to get_one_svn_log_entry().

9 years agoEnsure target WC is clean/reverted when continuing.
Tony Duckles [Sat, 18 Feb 2012 22:44:50 +0000]
Ensure target WC is clean/reverted when continuing.

9 years agoPerf: Only "svn update" when needed. This means a mixed-revision WC, but much-faster...
Tony Duckles [Sat, 18 Feb 2012 22:42:09 +0000]
Perf: Only "svn update" when needed. This means a mixed-revision WC, but much-faster replays for large WC's.

9 years agoUpdate parse_svn_status_xml() to use defensive conditional rather than assert for...
Tony Duckles [Sat, 18 Feb 2012 22:36:43 +0000]
Update parse_svn_status_xml() to use defensive conditional rather than assert for base_dir prefix checking

9 years agoFix process_svn_log_entry() to not include action="M" paths in skip_paths, so that...
Tony Duckles [Sat, 18 Feb 2012 22:35:04 +0000]
Fix process_svn_log_entry() to not include action="M" paths in skip_paths, so that do_svn_add() will try to check+create correct ancestry.
Update process_svn_log_entry() to calculate 'kind' if kind='none'.

9 years agoFix a place in find_svn_ancestors() which should've been using is_child_path().
Tony Duckles [Wed, 15 Feb 2012 20:48:14 +0000]
Fix a place in find_svn_ancestors() which should've been using is_child_path().
Display progress messages during build_rev_map(), for target repo's with lots of target_url commits to check.

9 years agoFix another --keep-revnum edge-case
Tony Duckles [Thu, 16 Feb 2012 01:42:53 +0000]
Fix another --keep-revnum edge-case

9 years agoCorrectly handle --keep-revnum mode during initial import
Tony Duckles [Sun, 12 Feb 2012 17:34:47 +0000]
Correctly handle --keep-revnum mode during initial import

9 years agoUpdates to README
Tony Duckles [Sat, 11 Feb 2012 22:11:03 +0000]
Updates to README

9 years agoUpdate README for --keep-date and --keep-revnum support
Tony Duckles [Sat, 11 Feb 2012 21:47:37 +0000]
Update README for --keep-date and --keep-revnum support

9 years agoAdd --keep-revnum support
Tony Duckles [Sat, 11 Feb 2012 21:38:25 +0000]
Add --keep-revnum support

9 years agoAdd --keep-date, --keep-prop, --archive, --log-author, --log-date command line args v1.2.0
Tony Duckles [Sat, 11 Feb 2012 21:36:21 +0000]
Add --keep-date, --keep-prop, --archive, --log-author, --log-date command line args
Add hook-examples/pre-revprop-change_example.txt

9 years agoBetter options.svn_rev parsing and validation
Tony Duckles [Sat, 11 Feb 2012 21:30:08 +0000]
Better options.svn_rev parsing and validation

9 years agoMake 'options' a global var
Tony Duckles [Sat, 11 Feb 2012 21:11:56 +0000]
Make 'options' a global var

9 years agoPerf Enh: Add skip_paths handling to do_svn_add(), to skip paths which will be handle...
Tony Duckles [Thu, 9 Feb 2012 04:21:11 +0000]
Perf Enh: Add skip_paths handling to do_svn_add(), to skip paths which will be handled later by process_svn_log_entry().

9 years agoSupport SVN versioned property updating
Tony Duckles [Thu, 9 Feb 2012 03:33:16 +0000]
Support SVN versioned property updating

9 years agoUpdate process_svn_log_entry() to calculate d['kind'] if missing.
Tony Duckles [Thu, 9 Feb 2012 03:25:24 +0000]
Update process_svn_log_entry() to calculate d['kind'] if missing.
Back-out changes from parse_svn_log_xml() to auto-calculate d['kind'] if not returned by "svn log --xml", since not all callers need d['kind']; just calculate on-demand where needed.

9 years agoFix copy-from handling and parent-path checking in get_kind()
Tony Duckles [Thu, 9 Feb 2012 03:18:24 +0000]
Fix copy-from handling and parent-path checking in get_kind()

9 years agoUse is_child_path() for correct path-is-child-of-parent-path checking.
Tony Duckles [Thu, 9 Feb 2012 03:11:43 +0000]
Use is_child_path() for correct path-is-child-of-parent-path checking.
Add all changed_path's to commit_paths; don't use add_path() anymore.
Don't use add_path() for managing commit_paths

9 years agoSupport revision range in --revision, both start and end point
Tony Duckles [Thu, 9 Feb 2012 01:28:32 +0000]
Support revision range in --revision, both start and end point

9 years agoFix iter_svn_log_entries() to handle chunks which have no matching entries.
Tony Duckles [Wed, 8 Feb 2012 04:04:42 +0000]
Fix iter_svn_log_entries() to handle chunks which have no matching entries.
Fix iter_svn_log_entries() to enforce a max_chunk_length.

9 years agoFix parse_svn_log_xml() to calculate d['kind'] if not returned by "svn log --xml...
Tony Duckles [Wed, 8 Feb 2012 03:43:58 +0000]
Fix parse_svn_log_xml() to calculate d['kind'] if not returned by "svn log --xml", to handle commits made on early SVN versions

9 years agoHandle empty "svn log" commit messages
Tony Duckles [Sat, 4 Feb 2012 04:50:14 +0000]
Handle empty "svn log" commit messages

9 years agoChange iter_svn_log_entries() back to getting smaller chunks, for better performance...
Tony Duckles [Sat, 4 Feb 2012 04:34:47 +0000]
Change iter_svn_log_entries() back to getting smaller chunks, for better performance on huge repositories.
Clarify safe iter_svn_log_entries() use-cases.
Use iter_svn_log_entries() where possible.

9 years agoAdd Links section to README
Tony Duckles [Thu, 2 Feb 2012 02:28:05 +0000]
Add Links section to README

9 years agoUpdate def process_svn_log_entry() to enumerate possible d['kind'] cases
Tony Duckles [Thu, 2 Feb 2012 02:03:54 +0000]
Update def process_svn_log_entry() to enumerate possible d['kind'] cases

9 years agoUpdate build_rev_map() to gracefully handle case where a target_rev has revprops...
Tony Duckles [Wed, 1 Feb 2012 03:43:37 +0000]
Update build_rev_map() to gracefully handle case where a target_rev has revprops but no svn2svn:* revprops

9 years agoMake module-level variables for source_*/target_*/rev_map
Tony Duckles [Sun, 29 Jan 2012 22:35:25 +0000]
Make module-level variables for source_*/target_*/rev_map

9 years agoMisc code clean-up
Tony Duckles [Sun, 29 Jan 2012 02:36:27 +0000]
Misc code clean-up

9 years agoUpdate README.mkd and documentation
Tony Duckles [Sat, 28 Jan 2012 15:26:37 +0000]
Update README.mkd and documentation

9 years agoImprove optparse formatting v1.1.0
Tony Duckles [Sat, 28 Jan 2012 05:00:05 +0000]
Improve optparse formatting

9 years ago* Add new --dry-run and --limit command-line args
Tony Duckles [Fri, 27 Jan 2012 18:53:34 +0000]
* Add new --dry-run and --limit command-line args
* Add error classes for InternalError and VerificationError
* Move all optparser handling to main()

9 years agoMigrate shared code to commit_from_svn_log_entry()
Tony Duckles [Fri, 27 Jan 2012 18:51:04 +0000]
Migrate shared code to commit_from_svn_log_entry()

9 years agoAdditive verbosity command-line args
Tony Duckles [Thu, 26 Jan 2012 06:32:15 +0000]
Additive verbosity command-line args

9 years agoAdd test revprop case. Fix some non-appending echo's.
Tony Duckles [Thu, 26 Jan 2012 06:07:03 +0000]
Add test revprop case. Fix some non-appending echo's.

9 years agoNo need to pre-throttle commit_paths in process_svn_log_entry()
Tony Duckles [Thu, 26 Jan 2012 05:25:06 +0000]
No need to pre-throttle commit_paths in process_svn_log_entry()

9 years agoNo need to defer "svn remove" actions anymore, due to earlier rewrites
Tony Duckles [Thu, 26 Jan 2012 05:16:53 +0000]
No need to defer "svn remove" actions anymore, due to earlier rewrites

9 years ago* Carry-forward revprop values from source repo
Tony Duckles [Thu, 26 Jan 2012 05:13:00 +0000]
* Carry-forward revprop values from source repo
* Make shared code for generating list of svn2svn:* source-tracking revprops

9 years agoBetter "Usage" help-text
Tony Duckles [Wed, 25 Jan 2012 06:08:02 +0000]
Better "Usage" help-text

9 years agoRemove obsolete
Tony Duckles [Wed, 25 Jan 2012 05:44:25 +0000]
Remove obsolete

9 years agoContinue-mode support w/ rev_map
Tony Duckles [Wed, 25 Jan 2012 05:40:32 +0000]
Continue-mode support w/ rev_map

9 years agoMerge branch 'modules' into develop
Tony Duckles [Tue, 24 Jan 2012 05:39:39 +0000]
Merge branch 'modules' into develop

9 years agoRun make-replay-repo in verbose-mode
Tony Duckles [Tue, 24 Jan 2012 05:38:34 +0000]
Run make-replay-repo in verbose-mode

9 years agoRemove HEAD-specific short-circuiting
Tony Duckles [Tue, 24 Jan 2012 05:35:01 +0000]
Remove HEAD-specific short-circuiting

9 years ago* Use ui.status for all status messages (verbose and debug)
Tony Duckles [Tue, 24 Jan 2012 05:31:02 +0000]
* Use ui.status for all status messages (verbose and debug)
* Show "Committed revision" after commits to target repo
* Fixes to in_svn()
* Show "svn status" results before cleanup when we catch an external-command exception

9 years agoMinor fixes to get_svn_status() handling
Tony Duckles [Tue, 24 Jan 2012 05:25:56 +0000]
Minor fixes to get_svn_status() handling

9 years agoDon't truncate status messages by default
Tony Duckles [Tue, 24 Jan 2012 05:24:58 +0000]
Don't truncate status messages by default