]> khamidou — GitHub mirrors - arcanist.git/commit
Provide api to get committed data in a hook
authorNick Harper <nharper@fb.com>
Fri, 25 May 2012 22:28:45 +0000 (15:28 -0700)
committerNick Harper <nharper@fb.com>
Fri, 25 May 2012 22:28:45 +0000 (15:28 -0700)
commitc51590dc1ec12ffeae94638670dbbcfb73988645
tree6c09016dbc6b31b1389cc1ab3ad4bd1ecac9d971
parent051cbcb8e9f78abe7d33ca4023f99ebb36c55d74
Provide api to get committed data in a hook

Summary:
We have a linter that needs to read data from the repo that isn't in the commit,
so that data isn't part of the svn transaction, thus not available in svnlook
cat --transaction. This change provides a method to get data from a committed
file.

Test Plan:
Successfully ran arc svn-hook-pre-commit with a linter that needs something
not in the transaction.

Reviewers: epriestley, jungejason, vrana

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2582
src/repository/hookapi/base/ArcanistHookAPI.php
src/repository/hookapi/subversion/ArcanistSubversionHookAPI.php