mirror of
https://github.com/php/doc-ru.git
synced 2025-07-28 06:39:58 +00:00
162 lines
4.3 KiB
XML
162 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: 715a125af5a86f0e6d6d5aa6cfa9c45257a433ac Maintainer: aur Status: ready -->
|
||
<!-- Reviewed: yes Maintainer: lex -->
|
||
<!-- $Revision$ -->
|
||
<refentry xml:id="function.svn-update" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<refnamediv>
|
||
<refname>svn_update</refname>
|
||
<refpurpose>Обновляет рабочую копию</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type>int</type><methodname>svn_update</methodname>
|
||
<methodparam><type>string</type><parameter>path</parameter></methodparam>
|
||
<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>
|
||
</methodsynopsis>
|
||
<para>
|
||
Обновляет рабочую копию, расположенную в <parameter>path</parameter> до ревизии
|
||
<parameter>revno</parameter>. Если параметр <parameter>recurse</parameter> установлен в &true;,
|
||
директории будут обновлены рекурсивно.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>path</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Путь к локальной рабочей копии.
|
||
</para>
|
||
&svn.relativepath;
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>revno</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Номер ревизии для обновления, по умолчанию <constant>SVN_REVISION_HEAD</constant>.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>recurse</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Следует ли рекурсивно обновлять директории.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
|
||
</refsect1>
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
В случае успеха возвращает новый номер ревизии, или &false; в случае ошибки.
|
||
</para>
|
||
</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>Базовый пример</title>
|
||
<para>
|
||
Нижеприведённый пример иллюстрирует базовое применение данной функции:
|
||
</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="notes">
|
||
&reftitle.notes;
|
||
&warn.experimental.func;
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><function>svn_checkout</function></member>
|
||
<member><function>svn_commit</function></member>
|
||
<member><link xlink:href="&url.svn.manual.update;">SVN-документация по svn update</link></member>
|
||
</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
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
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
|
||
-->
|