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

Re: Does propset really need to take it's value from a file?

From: Ben Collins-Sussman <sussman_at_newton.ch.collab.net>
Date: 2001-03-14 16:53:23 CET

"B. W. Fitzpatrick" <fitz@red-bean.com> writes:

> Ben, this is mostly directed to you.
>
> Last week, I disabled the ability of propset to take a value from a
> file. The current usage of it is:
>
> $ svn propset key value
>
> Now before I dedicate any more of my (limited) brain power to thinking
> about how we can best do this (given the current arg parsing
> mechanism), let me ask you: Does this function *really* need to get a
> property value from a file?

Property values are binary strings (svn_string_t), not null-delimited
text strings.

Think about the kinds of things you'd store in a Mac HFS resource
fork: File type, which application "owns" the file, and perhaps an
icon... and icons are binary graphics files. Even Win32 executables
store icons as internal `properties' this way.

So I think it's convenient for the user to be able to store a binary
file in a property value. It could be an icon, a self-portrait, a
non-asciified public key, whatever.
Received on Sat Oct 21 14:36:25 2006

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.