2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 09:08:43 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-21 11:46:57 +00:00
|
|
|
<refentry xml:id="function.svn-update" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2007-06-21 04:20:30 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>svn_update</refname>
|
|
|
|
<refpurpose>Update working copy</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>int</type><methodname>svn_update</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>path</parameter></methodparam>
|
2009-01-19 15:05:01 +00:00
|
|
|
<methodparam choice="opt"><type>int</type><parameter>revno</parameter><initializer>SVN_REVISION_HEAD</initializer></methodparam>
|
|
|
|
<methodparam choice="opt"><type>bool</type><parameter>recurse</parameter><initializer>true</initializer></methodparam>
|
2007-06-21 04:20:30 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Update working copy at <parameter>path</parameter> to revision
|
|
|
|
<parameter>revno</parameter>. If <parameter>recurse</parameter> is true,
|
|
|
|
directories will be recursively updated.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>path</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Path to local working copy.
|
|
|
|
</para>
|
|
|
|
&svn.relativepath;
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>revno</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Revision number to update to, default is <constant>SVN_REVISION_HEAD</constant>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>recurse</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-11-25 15:41:53 +00:00
|
|
|
Whether or not to recursively update directories.
|
2007-06-21 04:20:30 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns new revision number on success, returns &false; on failure.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
|
|
|
&warn.experimental.func;
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<!-- Use when ERRORS exist
|
|
|
|
<refsect1 role="errors">
|
|
|
|
&reftitle.errors;
|
|
|
|
<para>
|
|
|
|
When does this function throw E_* level errors, or exceptions?
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Use when a CHANGELOG exists
|
|
|
|
<refsect1 role="changelog">
|
|
|
|
&reftitle.changelog;
|
|
|
|
<para>
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<thead>
|
|
|
|
<row>
|
|
|
|
<entry>&Version;</entry>
|
|
|
|
<entry>&Description;</entry>
|
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>Enter the PHP version of change here</entry>
|
|
|
|
<entry>Description of change</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>Basic example</title>
|
|
|
|
<para>
|
|
|
|
This example demonstrates basic usage of this function:
|
|
|
|
</para>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
echo svn_update(realpath('working-copy'));
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
&example.outputs.similar;
|
|
|
|
<screen>
|
|
|
|
<![CDATA[
|
|
|
|
234
|
|
|
|
]]>
|
|
|
|
</screen>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>svn_checkout</function></member>
|
|
|
|
<member><function>svn_commit</function></member>
|
2007-06-21 11:46:57 +00:00
|
|
|
<member><link xlink:href="&url.svn.manual.update;">SVN documentation for svn update</link></member>
|
2007-06-21 04:20:30 +00:00
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2007-06-21 04:20:30 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|