1. Michael Gatto
  2. VersionControl_Hg

Source

VersionControl_Hg / src / Documentation / API / Docbook / versioncontrol / hg / container / versioncontrol-hg-container-workingcopy / setpath.xml

The default branch has multiple heads

<refentry id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.setpath">
 <refnamediv>
  <refname>
   <function>VersionControl_Hg_Container_WorkingCopy::setPath</function>
  </refname>
  <refpurpose>
   Sets the path of a changegroup bundle after validating it as an actual
   bundle
</refpurpose>
 </refnamediv>
 <refsynopsisdiv>
  <funcsynopsis>
   <funcsynopsisinfo>require_once &apos;/Hg/Container/WorkingCopy.php&apos;;</funcsynopsisinfo>
   <funcprototype>
    <funcdef>
     <replaceable>
      <link linkend="package.versioncontrol.hg.versioncontrol-hg-summary">
       <classname>VersionControl_Hg</classname>
      </link>
     </replaceable>
     <function>VersionControl_Hg_Container_WorkingCopy::setPath</function>
    </funcdef>
    <paramdef>
     string
     <parameter>
      <optional>$path = &null;</optional>
     </parameter>
    </paramdef>
   </funcprototype>
  </funcsynopsis>
 </refsynopsisdiv>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.setpath.desc">
  &title.desc;
  &notdocumented;
</refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.setpath.param">
  &title.param;
  <para>
   <variablelist>
    <varlistentry>
     <term>
      &type.string;
      <parameter>$path</parameter>
     </term>
     <listitem>
      <para>is the path to the hg executable</para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.setpath.returns">
  &title.returns;
  <para>
   <emphasis>returns</emphasis>
   to enable method chaining
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.setpath.see">
  &title.see;
  <para>
   <emphasis>see</emphasis>
   self::$path
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.setpath.throws">
  &title.throws;
  <para>
   <emphasis>throws</emphasis>
   no exceptions thrown
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.setpath.note">
  &title.note;
  &note.notstatic;
</refsect1>
</refentry>