Commits

Christoph Mewes committed 97804d2

basic support for `hg push`

Comments (0)

Files changed (2)

libhg/Command/Push/Cmd.php

  */
 
 /**
- * Generated command class for `hg push`
+ * Command class for `hg push`
  *
- * @generated
  * @see     http://selenic.com/hg/help/push
  * @package libhg.Command.Push
  */
 class libhg_Command_Push_Cmd extends libhg_Command_Push_Base {
 	/**
+	 * get command options
+	 *
+	 * @return libhg_Options_Interface  options container
+	 */
+	public function getCommandOptions() {
+		// don't show the progress
+		return parent::getCommandOptions()->setFlag('-q');
+	}
+
+	/**
 	 * evaluate server's respond to runcommand
 	 *
 	 * @param  libhg_Stream_Readable      $reader  readable stream

libhg/Command/Push/Result.php

  */
 
 /**
- * Generated result class for `hg push`
+ * Result class for `hg push`
  *
- * @generated
  * @see     http://selenic.com/hg/help/push
  * @package libhg.Command.Push
  */
-class libhg_Command_Push_Result {
+class libhg_Command_Push_Result extends libhg_Command_BaseResult {
 	/**
 	 * command output
 	 *
 	public $output;
 
 	/**
-	 * command return code
-	 *
-	 * @var int
-	 */
-	public $code;
-
-	/**
 	 * Constructor
 	 *
 	 * @param string $output  command's output
 	 * @param int    $code    command's return code
 	 */
 	public function __construct($output, $code) {
+		parent::__construct($code);
 		$this->output = $output;
-		$this->code   = $code;
 	}
 }