Commits

Michael Gatto committed c30d532 Merge

Merge pull request #2 from lornajane/hg-command-version-tostring

Adding VersionControl_Hg_Command_Version::__toString() as it's expected ...

  • Participants
  • Parent commits ae9b4fd, 86ec2b8

Comments (0)

Files changed (1)

File Trunk/VersionControl/Hg/Command/Version.php

 
         return $version;
     }
+
+    /**
+     * Return the results of the execute method when echoed
+     *
+     */
+
+    public function __toString() {
+        $version = $this->execute();
+        return $version['raw'];
+    }
 }