Name

propset

Synopsis

svn propset propname [propval] path ...
svn propset propname --revprop -r rev [propval] [URL]

Set propname to propval on files, directories, or revisions. The first example creates a versioned, local property change in the working copy, and the second creates an unversioned, remote property change on a repository revision. The new property value, propval, may be provided literally, or using the -F valfile option.

Alternate Names:

pset, ps

Changes:

Working copy; repository only if operating on a URL

Accesses Repository:

Only if operating on a URL

Options

--config-dir dir

--quiet (-q)

--encoding enc

--recursive (-R)

--filefile, -Ffile

--revisionrev, -rrev

--force

--revprop

--no-auth-cache

--targets filename

--non-interactive

--username user

--password pass

 

Examples

Set the mimetype on a file:

    $ svn propset svn:mime-type image/jpeg foo.jpg
    property 'svn:mime-type' set on 'foo.jpg'

On a Unix system, if you want a file to have execute permission:

    $ svn propset svn:executable ON somescript
    property 'svn:executable' set on 'somescript'

Tip

By default, you cannot modify revision properties in a Subversion repository. Your repository administrator must explicitly enable revision property modifications by creating a hook named pre-revprop-change.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.