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

Re: bug report "svn propset"

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 19 Feb 2009 11:50:41 -0500

On Thu, Feb 19, 2009 at 03:15, Mantas Balnys <mantas.balnys_at_nomagic.com> wrote:
> Hello Paul
>
> Thanks for your help. Anyway I think that such application behavior
> should be changed. Property value can be any string and "svn help" does
> not give any hint about this.

Paul explained that Subversion is adhering to convention in handling
such a command. Are you suggesting that Subversion should break that
conformity?

>
>
> Paul Koning wrote:
>>>>>>> "Mantas" == Mantas Balnys <mantas.balnys_at_nomagic.com> writes:
>>>>>>>
>>
>> Mantas> OS: Fedora 8 SVN: 1.4.4
>>
>> Mantas> Example: svn propset "propname" "-propvalue" file.txt svn:
>> Mantas> invalid option character: p
>>
>> Mantas> It seems that propvalue can't start with '-'
>>
>> Yes, it can.
>>
>> Unix switches (options) begin with "-", and modern apps allow options
>> to appear anywhere in the command line. So "-propvalue" is the switch
>> "-p" with value "ropvalue".
>>
>> There is also a standard Unix convention that says "there are no more
>> options in this command line". That is the way you deal with command
>> arguments that begin with "-". And Subversion supports this. You do
>> this by inserting "--" (two dashes) after the last option.
>>
>> For example:
>>
>> svn propset -q -- propname -propvalue file.txt
>>
>> Here -q is an option but -propvalue is a command argument. This will
>> do what you asked for.
>>
>> paul
>>
>>
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1190703
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1192855

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-19 17:54:45 CET

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

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