[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

New invoke-diff-cmd feature: --svn_cfg-file and --svn-cfg-file-query

From: Gabriela Gibson <gabriela.gibson_at_gmail.com>
Date: Sat, 26 Oct 2013 22:59:57 +0100

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
Received on 2013-10-26 23:58:56 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.