Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 0b38be552745286620faf2138b9468d0 > files > 126

subversion-doc-1.4.6-5.1mdv2008.1.x86_64.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>svn propset</title><link rel="stylesheet" href="styles.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><link rel="start" href="index.html" title="Version Control with Subversion" /><link rel="up" href="svn.ref.svn.html#svn.ref.svn.c" title="svn Subcommands" /><link rel="prev" href="svn.ref.svn.c.proplist.html" title="svn proplist" /><link rel="next" href="svn.ref.svn.c.resolved.html" title="svn resolved" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">svn propset</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="svn.ref.svn.c.proplist.html">Prev</a> </td><th width="60%" align="center"><span class="command"><strong>svn</strong></span> Subcommands</th><td width="20%" align="right"> <a accesskey="n" href="svn.ref.svn.c.resolved.html">Next</a></td></tr></table><hr /></div><div class="refentry" lang="en" xml:lang="en"><a id="svn.ref.svn.c.propset"></a><div class="titlepage"></div><a id="id419897" class="indexterm"></a><div class="refnamediv"><h2>Name</h2><p>svn propset — Set PROPNAME to PROPVAL on files, directories, or revisions.</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="id419923"></a><h2>Synopsis</h2><pre class="programlisting">svn propset PROPNAME [PROPVAL | -F VALFILE] PATH...</pre><pre class="programlisting">svn propset PROPNAME --revprop -r REV [PROPVAL | -F VALFILE] [TARGET]</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="id419942"></a><h2>Description</h2><p>Set <em class="replaceable"><code>PROPNAME</code></em> to
            <em class="replaceable"><code>PROPVAL</code></em> 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
            (<em class="replaceable"><code>TARGET</code></em> only determines which
            repository to access).</p><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p>Subversion has a number of “<span class="quote">special</span>”
              properties that affect its behavior.  See <a class="xref" href="svn.ref.properties.html" title="Subversion properties">the section called “Subversion properties”</a> for more on these
              properties.</p></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="id419983"></a><h2>Alternate Names</h2><p>pset, ps</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="id419993"></a><h2>Changes</h2><p>Working copy, repository only if operating on a URL</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="id420003"></a><h2>Accesses Repository</h2><p>Only if operating on a URL</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="id420013"></a><h2>Options</h2><pre class="screen">
--file (-F) FILE
--quiet (-q)
--revision (-r) REV
--targets FILENAME
--depth ARG
--revprop
--username USER
--password PASS
--no-auth-cache
--non-interactive
--encoding ENC
--force
--config-dir DIR
--changelist ARG
</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="id420027"></a><h2>Examples</h2><p>Set the mime type on a file:</p><pre class="screen">
$ svn propset svn:mime-type image/jpeg foo.jpg 
property 'svn:mime-type' set on 'foo.jpg'
</pre><p>On a UNIX system, if you want a file to have the
            executable permission set:</p><pre class="screen">
$ svn propset svn:executable ON somescript
property 'svn:executable' set on 'somescript'
</pre><p>Perhaps you have an internal policy to set certain
            properties for the benefit of your coworkers:</p><pre class="screen">
$ svn propset owner sally foo.c
property 'owner' set on 'foo.c'
</pre><p>If you made a mistake in a log message for a
            particular revision and want to change it, use
            <code class="option">--revprop</code> and set <code class="literal">svn:log</code>
            to the new log message:</p><pre class="screen">
$ svn propset --revprop -r 25 svn:log "Journaled about trip to New York."
property 'svn:log' set on repository revision '25'
</pre><p>Or, if you don't have a working copy, you can
            provide a URL.</p><pre class="screen">
$ svn propset --revprop -r 26 svn:log "Document nap." http://svn.red-bean.com/repos
property 'svn:log' set on repository revision '25'
</pre><p>Lastly, you can tell propset to take its input from
            a file.  You could even use this to set the contents of a
            property to something binary:</p><pre class="screen">
$ svn propset owner-pic -F sally.jpg moo.c 
property 'owner-pic' set on 'moo.c'
</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>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
              <code class="literal">pre-revprop-change</code>.  See <a class="xref" href="svn.reposadmin.create.html#svn.reposadmin.create.hooks" title="Implementing Repository Hooks">the section called “Implementing Repository Hooks”</a> for more information on
              hook scripts.</p></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="svn.ref.svn.c.proplist.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="svn.ref.svn.html#svn.ref.svn.c">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="svn.ref.svn.c.resolved.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">svn proplist </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> svn resolved</td></tr></table></div></body></html>