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

Re: [PATCH] svnadmin create --owner --group patch (new feature)

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-09-16 20:47:57 CEST

Branko Čibej wrote:

>>$ ./svnadmin create --owner nobody /tmp/test
>>svn: Client error in parsing arguments
>>svn: --owner and --group unavailable under Win32
>
>
> Heh, that's exactly the opposite of ignoring the option. :-) A warning
> would be O.K., but an error is overdoing it in this case. It makes it
> harder for people to write platform-independent scripts.
>

In general, I agree completely. In practice, though, svnadmin is not a likely
target for scripting. And in this case, I thought that simply ignoring the
option would be wrong, since it doesn't do what the user asked it to do _at all_
under Win32. I can change it to a warning, however. Can I use ASCII BEL
control characters in the warning? ;~0

>>so that all of the Unix specific stuff doesn't exist for Win32...
>
>
> In cases like this, I (we) prefer feature tests rather than platform
> tests. That would involve adding checks for umask, setgid and setuid to
> configure.in, then checking HAVE_UMASK, HAVE_SETUID and HAVE_SETGID.
> There are (admittedly obscure) Unix-like systems that have some, but not
> all of these functions. In any case, the world isn't divided between
> Windows and Unix. :-)

OK, if you are going to be that way about it ;~)

I'll have to ask for help, then, since my configure.in-fu is very weak.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 16 20:48:27 2003

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.