Name
propset
Synopsis
svn propsetpropname
[propval
]path
... svn propsetpropname
--revprop -rrev
[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: |
|
Changes: |
Working copy; repository only if operating on a URL |
Accesses Repository: |
Only if operating on a URL |
Options
|
|
|
|
|
|
|
|
|
|
|
|
|
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.