return array(
'message' => array(
'short' => 'm',
- 'supports' => array(
- 'git',
- ),
- 'nosupport' => array(
- 'svn' => 'Edit revisions via the web interface when using SVN.',
- ),
'param' => 'message',
'help' =>
- "When updating a revision under git, use the specified message ".
- "instead of prompting.",
+ "When updating a revision, use the specified message instead of ".
+ "prompting.",
),
'message-file' => array(
'short' => 'F',
return $comments;
}
+ if ($this->getArgument('raw')) {
+ throw new ArcanistUsageException(
+ "When using '--raw' to update a revision, specify an update message ".
+ "with '--message'. (Normally, we'd launch an editor to ask you for a ".
+ "message, but can not do that because stdin is a diff source.)");
+ }
+
// When updating a revision using git without specifying '--message', try
// to prefill with the message in HEAD if it isn't a template message. The
// idea is that if you do: