Summary: I plan to use it in `save_lint.php`.
Test Plan:
$api->getUnderlyingWorkingCopyRevision(); // In Git SVN repo
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4054
return rtrim($stdout, "\n");
}
+ public function getUnderlyingWorkingCopyRevision() {
+ list($err, $stdout) = $this->execManualLocal('svn find-rev HEAD');
+ if (!$err && $stdout) {
+ return rtrim($stdout, "\n");
+ }
+ return $this->getWorkingCopyRevision();
+ }
+
public function isHistoryDefaultImmutable() {
return false;
}
ConduitClient $conduit,
array $query);
+ public function getUnderlyingWorkingCopyRevision() {
+ return $this->getWorkingCopyRevision();
+ }
+
/**
* Set the base commit to a reasonable default value so that working copy
* status checks can do something meaningful and won't invoke configured