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

[PATCH] Give svnmucc ability to handle multiline properties

From: Purple Streak <mrpurplestreak_at_googlemail.com>
Date: Thu, 16 Jul 2009 11:47:15 +0100

We use svnmucc to update externals properties as part of our build
process. As it is svnmucc doesn't allow multi-line property values
when used with -X as each newline in the extra args file means a new
argument. This is patch which we've been using to allow this. If the
argument isn't used then the behaviour is unchanged.

Allow svnmucc to set multiline properties. This is done by adding an optional
-c (--continuation-char) argument which takes a single character argument.
Any lines in the --extra-args file ending with that character will then not
terminate the current argument.

* tools/client-side/svnmucc/svnmucc.c
  (read_extra_args) New external file argument parsing function
  (usage) Updated with new argument
  (main) Update to accept new argument and call read_extra_args

As an example we are using '-c @' on a file with:

svnmucc.exe -m "hello" -c @ -X multi-line.txt

Where multi-line.txt is

-r52792 /svn/Repo/Pools/Shared/Stuff@
-r52792 /svn/Repo/Pools/Shared/MoreStuff


Received on 2009-07-16 12:47:38 CEST

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