Hi,

I added an internal mechanism to the --invoke-diff-cmd which allows the user to automatically or interactively select individual files and their
respective diff cmds, configurable via an arbitrary config file.

There are now two optional, internal switches to the invoke-diff-cmd command:

       --svn_cfg-file and --svn-cfg-file-query.

The usage in each case is:

--invoke-diff-cmd='(--switch) (path/to/config/file) (default-diff-cmd)'

Those two switches do the following:

1) --svn-cfg-file causes svn to check the given diff_cmds_config file
   and apply the rules therein automatically on a per-file basis.

   If a file is not specifically mentioned in the svn-cfg-file, then
   the given --invoke-diff-cmd is applied.

2) --svn-cfg-file-query works like --svn-cfg-file, but it will prompt
   the user for every file in the given config-file whether they want
   to use the instruction in the config file, the default
   invoke-diff-cmd or input something completely different.

   Note: --svn-cfg-file-query is not implemented yet.

The config file itself looks like so:

# Note the test1 label
subversion/svn/svn.c = diff -L "test1" %svn_old% %svn_new%
# Testing with more than one word in the label
subversion/libsvn_subr/io.c = diff -L "test 2" %svn_old% %svn_new%

The code itself has a few efficiency issues, but is sufficient for a
proof-of-concept demonstration.

The revision is located here:

http://svn.apache.org/viewvc?view=revision&revision=r1536020

I sent an old copy of the BRANCH-README, the up-to-date version that
describes the new feature is here:

http://svn.apache.org/viewvc?view=revision&revision=r1536037

Thanks for looking!

Gabriela

Reply via email to