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

Re: [PATCH] Re: propedit on svn:mime-type

From: Alex Waugh <alex_at_alexwaugh.com>
Date: 2003-03-10 15:22:25 CET

brane@xbc.nu wrote:
> Quoting Alex Waugh <alex@alexwaugh.com>:
>
>>- SVN_ERR (svn_io_set_file_executable (path, TRUE, TRUE, pool));
>>+ {
>>+ /* Since we only check if the property exists or not, force the
>>+ property value to a specific value */
>>+ new_value = svn_stringbuf_create_from_string (value, pool);
>>+ svn_stringbuf_set (new_value, SVN_PROP_EXECUTABLE_VALUE);
>>+ SVN_ERR (svn_io_set_file_executable (path, TRUE, TRUE, pool));
>>+ }
>
>
> How about just:
>
> value = SVN_PROP_EXECUTABLE_VALUE;
>
> You don't have to create a stringbuf just to change the prop value to a fixed
> string, right? :-)

Of course. Silly me :-)

Alex

-- 
Alex Waugh                  alex@alexwaugh.com
RISC OS software from http://www.alexwaugh.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 10 15:24:08 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.