Source

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

The default branch has multiple heads

Full commit
<refentry id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.create">
 <refnamediv>
  <refname>
   <function>VersionControl_Hg_Container_WorkingCopy::create</function>
  </refname>
  <refpurpose>Create a working copy</refpurpose>
 </refnamediv>
 <refsynopsisdiv>
  <funcsynopsis>
   <funcsynopsisinfo>require_once &apos;/Hg/Container/WorkingCopy.php&apos;;</funcsynopsisinfo>
   <funcprototype>
    <funcdef>
     VersionControl_Container_WorkingCopy
     <function>VersionControl_Hg_Container_WorkingCopy::create</function>
    </funcdef>
    <paramdef>
     string
     <parameter>$path</parameter>
    </paramdef>
   </funcprototype>
  </funcsynopsis>
 </refsynopsisdiv>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.create.desc">
  &title.desc;
  <para>This is usally done by calling `hg update` on a directory which  has a .hg repository, but no files, possibly because someone called  `hg update null`.</para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.create.param">
  &title.param;
  <para>
   <variablelist>
    <varlistentry>
     <term>
      &type.string;
      <parameter>$path</parameter>
     </term>
     <listitem>
      <para>is the path to the working copy on the filesystem</para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.create.returns">
  &title.returns;
  <para>
   <emphasis>returns</emphasis>
   is an instance of a                                               working copy.
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.create.throws">
  &title.throws;
  <para>
   <emphasis>throws</emphasis>
   no exceptions thrown
  </para>
 </refsect1>
 <refsect1 id="package.versioncontrol.hg.container.versioncontrol-hg-container-workingcopy.create.note">
  &title.note;
  &note.notstatic;
</refsect1>
</refentry>