- show "push upstream" instructions after arc amend
- parse 'diffcamp revision'
Summary:
Test Plan:
Reviewers:
CC:
$obj = new ArcanistDifferentialCommitMessage();
$obj->rawCorpus = $corpus;
+ // TODO: Remove "Diffcamp" backward compatibility.
$match = null;
- if (preg_match('/^Differential Revision:\s*D?(\d+)/m', $corpus, $match)) {
+ if (preg_match('/^(?:Differential|DiffCamp) Revision:\s*D?(\d+)/im', $corpus, $match)) {
$obj->revisionID = (int)$match[1];
}
}
}
+ echo phutil_console_wrap(
+ "You may now push this commit upstream, as appropriate (e.g. with ".
+ "'git push', or 'git svn dcommit', or by printing and faxing it).\n");
+
return 0;
}