style: Add repository helper functions
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:33:04 +0000 (15:33 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:33:04 +0000 (15:33 +0100)
commit22ff270b17f43dc65f0788fec04ca15fd0428ca4
tree9a8f7ed02477b1cd79534f6be0fa6e9d9db810b1
parent74f62c784d1af5a6be53e3f49010e0e15a0f312e
style: Add repository helper functions

Add an AbstractRepo class and implementations for git and Mercurial
that provide a common interface to query repository status for style
checkers. The class defines the interfaces to list modified files that
are about to be committed and methods to identify changed regions.

Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Steve Reinhardt <steve.reinhardt@amd.com>
--HG--
rename : util/style.py => util/hgstyle.py
extra : rebase_source : da1f482a1ecac2b0be437dc400b4a66bd3b301cc
util/style/repo.py [new file with mode: 0644]