<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.svn.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.svn-cleanup.php',
    1 => 'svn_cleanup',
    2 => 'Рекурсивно очищает рабочую копию директории, завершает незаконченные
   операции и снимает блокировки',
  ),
  'up' => 
  array (
    0 => 'ref.svn.php',
    1 => 'Функции SVN',
  ),
  'prev' => 
  array (
    0 => 'function.svn-checkout.php',
    1 => 'svn_checkout',
  ),
  'next' => 
  array (
    0 => 'function.svn-client-version.php',
    1 => 'svn_client_version',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/svn/functions/svn-cleanup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.svn-cleanup" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">svn_cleanup</h1>
  <p class="verinfo">(PECL svn &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">svn_cleanup</span> &mdash; <span class="dc-title">Рекурсивно очищает рабочую копию директории, завершает незаконченные
   операции и снимает блокировки</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.svn-cleanup-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>svn_cleanup</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$workingdir</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Рекурсивно очищает рабочую копию директории <code class="parameter">workingdir</code>,
   завершает любые незаконченные операции и снимает блокировки из рабочей копии.
   Используйте, когда необходимо возобновить работу недоступной рабочей копии.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.svn-cleanup-parameters">
  <h3 class="title">Список параметров</h3>
  <dl>
   
    <dt><code class="parameter">workingdir</code></dt>
    <dd>
     <span class="simpara">
      Путь к локальной рабочей копии для очистки.
     </span>
     <blockquote class="note"><p><strong class="note">Замечание</strong>: 
<span class="simpara">
Функция вычислит относительные пути так, как если бы текущая рабочая директория была домашней папкой самого PHP.
Чтобы использовать рабочую директорию вызывающего скрипта, пользуются функцией <span class="function"><a href="function.realpath.php" class="function">realpath()</a></span>
или dirname(__FILE__).
</span>
</p></blockquote>
    </dd>
   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.svn-cleanup-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="simpara">
   Функция возвращает <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, если выполнилась успешно, или <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, если возникла ошибка.
  </p>
 </div>


 

 

 <div class="refsect1 examples" id="refsect1-function.svn-cleanup-examples">
  <h3 class="title">Примеры</h3>
  <div class="example" id="example-1">
   <p><strong>Пример #1 Простой пример</strong></p>
   <div class="example-contents"><p>
    Этот пример показывает, как очистить рабочую копию в директории help-me:
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />svn_cleanup</span><span style="color: #007700">(</span><span style="color: #0000BB">realpath</span><span style="color: #007700">(</span><span style="color: #DD0000">'help-me'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>
    В связи со странным поведением относительных путей в SVN,
    необходим вызов функции <span class="function"><a href="function.realpath.php" class="function">realpath()</a></span>.
   </p></div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.svn-cleanup-notes">
  <h3 class="title">Примечания</h3>
  <div class="warning"><strong class="warning">Внимание</strong><p class="simpara">
Это <em>ЭКСПЕРИМЕНТАЛЬНАЯ</em> функция. Поведение,
название и документацию к функции в новых версиях PHP изменяют без уведомления.
За включение функции в код отвечает программист.</p></div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.svn-cleanup-seealso">
  <h3 class="title">Смотрите также</h3>
  <ul class="simplelist">
   <li><span class="function"><strong>update()</strong></span></li>
   <li><a href="http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.cleanup.html" class="link external">&raquo;&nbsp;
    SVN-документация по svn cleanup</a></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>