gerrit/gerrit-common
David Pletcher 82d99d7f64 Pass commit IDs into DiffInfo
This change enables logging file access by commit ID and path using
the AuditListener interface. After a GetDiff REST request is processed,
the AuditListener.onAuditableAction method is called with an
ExtendedHttpAuditEvent parameter, which in turn references a DiffInfo
object. However, the diff base commit ID is not available anywhere in
this object graph. Left and right commit IDs are available in the
PatchScriptBuilder object; that is the data we need. This change
propagates the commit IDs through a series of intermediate data
structures and ultimately makes them available as transient fields in
the DiffInfo object. The AuditListener implementation will copy these
commit values into the access log, along with the file path, timestamp
and other typical logging fields.

The new fields are marked transient--unsupported
and undocumented. There are no anticipated side-effects.

Change-Id: I43e5a14e8951442039bd2d8e941e2aa128e82447
2015-05-05 05:35:05 +00:00
..
src Pass commit IDs into DiffInfo 2015-05-05 05:35:05 +00:00
BUCK SitePaths: Convert lib_dir to Path 2015-02-24 09:19:58 -08:00