Summary: Parse some other fields which I hadn't seen yet from "hg log". Select
the right "hg log" range for local commit info.
Test Plan: Ran "arc diff" in my test mercurial repository from a branch with
tags. Looked at "local commits" in Differential.
Reviewers: Makinde, aran, jungejason, tuomaspelkonen
Reviewed By: Makinde
CC: aran, Makinde
Differential Revision: 880
$this->getPath(),
$this->getRelativeCommit(),
'tip');
- return $this->parseMercurialLog($info);
+ $logs = $this->parseMercurialLog($info);
+
+ // Get rid of the first log, it's not actually part of the diff. "hg log"
+ // is inclusive, while "hg diff" is exclusive.
+ array_shift($logs);
+
+ return $logs;
}
'rev' => $rev,
);
break;
+ case 'branch':
+ $commit['branch'] = $value;
+ break;
+ case 'tag':
+ $commit['tag'] = $value;
+ break;
default:
throw new Exception("Unknown Mercurial log field '{$name}'!");
}