Summary: Apparently I just never tested this or something. Make it work
correctly.
Test Plan: Ran "arc diff" in a Mercurial working copy with a binary file in
outgoing.
Reviewers: Makinde
Reviewed By: Makinde
CC: aran, Makinde
Differential Revision: 1074
}
private function getFileDataAtRevision($path, $revision) {
- list($stdout) = execx(
+ list($err, $stdout) = exec_manual(
'(cd %s && hg cat --rev %s -- %s)',
$this->getPath(),
+ $revision,
$path);
- return $stdout;
+ if ($err) {
+ // Assume this is "no file at revision", i.e. a deleted or added file.
+ return null;
+ } else {
+ return $stdout;
+ }
}
private function getWorkingCopyRevision() {