phutil_require_module('arcanist', 'repository/api/base');
$config_trace_mode = false;
+$force_conduit = null;
$args = array_slice($argv, 1);
$load = array();
$matches = null;
} else if (preg_match('/^--load-phutil-library=(.*)$/', $arg, $matches)) {
unset($args[$key]);
$load['?'] = $matches[1];
+ } else if (preg_match('/^--conduit-uri=(.*)$/', $arg, $matches)) {
+ unset($args[$key]);
+ $force_conduit = $matches[1];
}
}
$set_guid = false;
if ($need_conduit) {
- $conduit_uri = $working_copy->getConduitURI();
+
+ if ($force_conduit) {
+ $conduit_uri = $force_conduit;
+ } else {
+ $conduit_uri = $working_copy->getConduitURI();
+ }
if (!$conduit_uri) {
throw new ArcanistUsageException(
"No Conduit URI is specified in the .arcconfig file for this project. ".
__--no-ansi__
Output in plain ASCII text only, without color or style.
+ __--load-phutil-library=/path/to/library__
+ Ignore libraries listed in .arcconfig and explicitly load specified
+ libraries instead. Mostly useful for Arcanist development.
+
+ __--conduit-uri=...__
+ Ignore configured Conduit URI and use an explicit one instead. Mostly
+ useful for Arcanist development.
+
EOTEXT
);
to do this; arc commit (svn), arc amend (git) or commit hooks in the
master remote repository should do it for you. However, if these
mechanisms have failed for some reason you can use this command to
- manually change a revision status from "accepted" to "committed".
+ manually change a revision status from "Accepted" to "Committed".
EOTEXT
);
}
Supports: bash, etc.
Implements shell completion. To use shell completion, source the
appropriate script from 'resources/shell/' in your .shellrc.
-
EOTEXT
);
}
}
return 0;
} else {
-
+
$output = array();
foreach ($arguments as $argument => $spec) {
if ($argument == '*') {
}
$output[] = '--'.$argument;
}
-
+
$cur = idx($argv, $pos, '');
$any_match = false;
foreach ($output as $possible) {
$any_match = true;
}
}
-
+
if (!$any_match && isset($arguments['*'])) {
// TODO: the '*' specifier should probably have more details about
// whether or not it is a list of files. Since it almost always is in
return phutil_console_format(<<<EOTEXT
**svn-hook-pre-commit** __repository__ __transaction__
Supports: svn
- You can install this as an SVN pre-commit hook.
+ You can install this as an SVN pre-commit hook. For more information,
+ see the article "Installing Arcanist SVN Hooks" in the Arcanist
+ documentation.
EOTEXT
);
}