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

svnmacc - changes to allow multiple lines in args file

From: Purple Streak <mrpurplestreak_at_googlemail.com>
Date: Fri, 24 Apr 2009 17:52:22 +0100

Hi,
I'd like to make some changes to svnmucc, and ideally i'd like to make
this a patch so I don't have to recompile my own version each release.
So i'd like to try and sort out the functionality before getting the
patch together.

The problem:
Our build system uses svnmucc to update some svn:externals properties.
 Each property can have several lines in it, and we want to update the
externals for several projects in one go. e.g.

-r57026 /svn/projectA projectA
-r37628 /svn/projectB projectB
^/Externals/SQLite/1.0.46.0 SQLite
^/Externals/zib zlib

So we want to build up an file to pass in via --extra-args like

propset
svn:externals
-r57026 /svn/projectA projectA
-r37628 /svn/projectB projectB
^/Externals/SQLite/1.0.46.0 SQLite
^/Externals/zib zlib
https://sourcesvr/svn/myurl

Of course this gives an error as on the fourth line it expects a URL.
So what I want to is fix this.

So far I've thought of two ways. One is to allow a line continuation
character (e.g. @) which could possible be specifiable from the
command line (and default to not having one at all to preserve
existing behaviour) so that the file would work like this

propset
ext
-r57026 /svn/projectA projectA @
-r37628 /svn/projectB projectB @
^/Externals/SQLite/1.0.46.0 SQLite @
^/Externals/zib zlib
https://rg-source01/svn/Sandbox/Nigelsbit
propset

(in fact i've already done this a simple temporary hack for us to
use). The other would be to allow \r and \n escape characters - which
of course means implementing \ as a proper escape character so that \\
and \<newline> works etc. This would also need to command line
switch to enable it otherwise it would break existing users (esp. on
windows).

Are either of these acceptable?

Thanks.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1895108
Received on 2009-04-24 18:52:43 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.