You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Barry Scott <ba...@barrys-emacs.org> on 2006/11/29 21:38:51 UTC

What is the syntax of the svn: property values?

I've read the svn book and searched with google and cannot find a  
precise
definition of the values that are accepted for the svn: properties.

THere are a number of mail messages where people have asked for the
syntax of svn:external for example without anyone responding with this
information.

Is there a spec for what is allowed? Or do I need to read the source  
to find out?

I'm interested in the detail so that I can improve the properties  
dialog in
pysvn WorkBench.

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: What is the syntax of the svn: property values?

Posted by Barry Scott <ba...@barrys-emacs.org>.
On Nov 29, 2006, at 21:55, Daniel Rall wrote:

> On Wed, 29 Nov 2006, Barry Scott wrote:
>
>> I've read the svn book and searched with google and cannot find a
>> precise
>> definition of the values that are accepted for the svn: properties.
> ...
>> Is there a spec for what is allowed?
> ...
>
> 'svn help propset' describes what's allowed.  Would you tell us what's
> lacking in the description below?


>
> --- snip ---
>   Note: svn recognizes the following special versioned properties
>   but will store any arbitrary properties set:
>     svn:ignore     - A newline separated list of file patterns to  
> ignore.
>     svn:keywords   - Keywords to be expanded.  Valid keywords are:
>       URL, HeadURL             - The URL for the head version of  
> the object.
>       Author, LastChangedBy    - The last person to modify the file.
>       Date, LastChangedDate    - The date/time the object was last  
> modified.
>       Rev, Revision,           - The last revision the object changed.
>       LastChangedRevision
>       Id                       - A compressed summary of the previous
>                                    4 keywords.
What is the list separator? Space, comma or something else?

>     svn:executable - If present, make the file executable.
>     svn:eol-style  - One of 'native', 'LF', 'CR', 'CRLF'.
>     svn:mime-type  - The mimetype of the file.  Used to determine
>       whether to merge the file, and how to serve it from Apache.
>       A mimetype beginning with 'text/' (or an absent mimetype) is
>       treated as text.  Anything else is treated as binary.
>     svn:externals  - A newline separated list of module specifiers,
>       each of which consists of a relative directory path, optional
>       revision flags, and an URL.  For example
>         foo             http://example.com/repos/zig
>         foo/bar -r 1234 http://example.com/repos/zag

Is --revision allowed?

>     svn:needs-lock - If present, indicates that the file should be  
> locked
>       before it is modified.  Makes the working copy file read-only
>       when it is not locked.
>   The svn:keywords, svn:executable, svn:eol-style, svn:mime-type and
>   svn:needs-lock properties cannot be set on a directory.  A non- 
> recursive
>   attempt will fail, and a recursive attempt will set the property
>   only on the file children of the directory.
> --- snip ---

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: What is the syntax of the svn: property values?

Posted by Daniel Rall <dl...@collab.net>.
On Wed, 29 Nov 2006, Barry Scott wrote:

> I've read the svn book and searched with google and cannot find a  
> precise
> definition of the values that are accepted for the svn: properties.
...
> Is there a spec for what is allowed?
...

'svn help propset' describes what's allowed.  Would you tell us what's
lacking in the description below?

--- snip ---
  Note: svn recognizes the following special versioned properties
  but will store any arbitrary properties set:
    svn:ignore     - A newline separated list of file patterns to ignore.
    svn:keywords   - Keywords to be expanded.  Valid keywords are:
      URL, HeadURL             - The URL for the head version of the object.
      Author, LastChangedBy    - The last person to modify the file.
      Date, LastChangedDate    - The date/time the object was last modified.
      Rev, Revision,           - The last revision the object changed.
      LastChangedRevision
      Id                       - A compressed summary of the previous
                                   4 keywords.
    svn:executable - If present, make the file executable.
    svn:eol-style  - One of 'native', 'LF', 'CR', 'CRLF'.
    svn:mime-type  - The mimetype of the file.  Used to determine
      whether to merge the file, and how to serve it from Apache.
      A mimetype beginning with 'text/' (or an absent mimetype) is
      treated as text.  Anything else is treated as binary.
    svn:externals  - A newline separated list of module specifiers,
      each of which consists of a relative directory path, optional
      revision flags, and an URL.  For example
        foo             http://example.com/repos/zig
        foo/bar -r 1234 http://example.com/repos/zag
    svn:needs-lock - If present, indicates that the file should be locked
      before it is modified.  Makes the working copy file read-only
      when it is not locked.
  The svn:keywords, svn:executable, svn:eol-style, svn:mime-type and
  svn:needs-lock properties cannot be set on a directory.  A non-recursive
  attempt will fail, and a recursive attempt will set the property
  only on the file children of the directory.
--- snip ---

Re: What is the syntax of the svn: property values?

Posted by Ben Collins-Sussman <su...@red-bean.com>.
Also look at the reference chapter of the svnbook:

http://svnbook.red-bean.com/nightly/en/svn.ref.svnprops.html


On 11/29/06, Barry Scott <ba...@barrys-emacs.org> wrote:
> I've read the svn book and searched with google and cannot find a
> precise
> definition of the values that are accepted for the svn: properties.
>
> THere are a number of mail messages where people have asked for the
> syntax of svn:external for example without anyone responding with this
> information.
>
> Is there a spec for what is allowed? Or do I need to read the source
> to find out?
>
> I'm interested in the detail so that I can improve the properties
> dialog in
> pysvn WorkBench.
>
> Barry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org