1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-10 17:02:40 +01:00
phorge-arcanist/src
Kunal Bhalla 62e527482b [arc svn-hook-pre-commit] Access working copy
Summary:
Creates a new hook API that can be used to interface with
SVN/Git/Mercurial in the context of a commit hook. Currently only adds a
function to read the modified file data in a Subversion commit hook.

An object of this API is created in the SvnHookPreCommitWorkflow and
passed on the Lint Engine which then uses it to access current file
data, of the way the APIs seem to be structured); linters use the
getData function which is essentially a wrapper around the engine's
call, with another layer of caching.

Task ID: #770556

Blame Rev:

Test Plan:
- Create a local svn repository and add a minimal hook to run the local
  version of arc to test commits

(http://phabricator.com/docs/arcanist/article/Installing_Arcanist_SVN_Hooks.html)
- Create a temporary repository that can trigger any of the linters
  available, and test against a temporary linter by committing against
  the test repository: the linter should be able to access all required
  files by using loadData/getData in the LintEngine and Linter.

Revert Plan:

Tags: lint, svn-hook-pre-commit

Reviewers: jungejason, asukhachev, epriestley, aran

Reviewed By: epriestley

CC: aran, jungejason, epriestley, kunalb, asukhachev

Differential Revision: https://secure.phabricator.com/D1256
2011-12-29 14:28:50 -08:00
..
branch Fix "arc branch" to work if you are on "(no branch)" add revision IDs 2011-06-29 13:30:44 -07:00
configuration Run post hook regardless of error code 2011-07-12 14:40:32 -07:00
difference Use linear distance instead of square distance in levenshtein 2011-11-15 13:48:26 -08:00
differential Parse full URIs for "Differential Revision" in Arcanist 2011-12-20 19:57:55 -08:00
docs Reorganize documentation. 2011-05-31 12:14:20 -07:00
events/constant/type Allow modification of the svn commit message via an event listener 2011-11-16 16:40:19 -08:00
exception Some documentation. 2011-02-19 11:36:08 -08:00
lint [arc svn-hook-pre-commit] Access working copy 2011-12-29 14:28:50 -08:00
parser Decompose TYPE_MULTICOPY changes into a MOVE_HERE plus one or more COPY_HERE 2011-12-24 09:00:44 -08:00
repository [arc svn-hook-pre-commit] Access working copy 2011-12-29 14:28:50 -08:00
unit Avoid infinite loop in 'arc unit' 2011-12-01 08:50:12 -08:00
workflow [arc svn-hook-pre-commit] Access working copy 2011-12-29 14:28:50 -08:00
workingcopyidentity Improve error messages when trying to parse bad .arcconfig files. 2011-02-24 16:34:27 -08:00
__phutil_library_init__.php Initial commit. 2011-01-09 15:22:25 -08:00
__phutil_library_map__.php [arc svn-hook-pre-commit] Access working copy 2011-12-29 14:28:50 -08:00