[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: Mantas Balnys <mantas.balnys_at_nomagic.com>
Date: Thu, 19 Feb 2009 10:15:34 +0200

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.

Sincerely,

Mantas Balnys
Programmer
No Magic Europe
Savanoriu 363, LT-49425, Kaunas, Lithuania Phone +370 37 324032 , fax
+370 37 320670
E-mail: mantas.balnys_at_nomagic.com
http://www.nomagic.com
http://www.magicdraw.com
www: http://www.magicdraw.com

-- 
MagicDraw - Architecture Made Simple!
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].
Received on 2009-02-19 17:44:54 CET

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