gerrit/gerrit-server
Dave Borowitz 81e07a886c ChangeJson: Refactor revision codepath
Use GitRepositoryManager directly to read the commit, rather than
going implicitly through PatchSetInfoFactory. This allows a single
Repository/RevWalk to eventually be shared by more options in this
codepath. We also don't need the ChangeData at all, as we can get
everything we need from the ChangeControl.

Since more statements may now throw IOException, allow this and other
exceptions to propagate up through all the private methods of
ChangeJson, only wrapping in OrmException at the top-level public
methods.

This does result in some code duplication in GetCommit, but it's
pretty simple boilerplate.

Change-Id: I56a916745576f8f2db4547756605d48008f3dc2d
2015-04-28 09:40:03 -07:00
..
src ChangeJson: Refactor revision codepath 2015-04-28 09:40:03 -07:00
BUCK Use a fake EmailSender in tests 2015-04-16 17:01:39 -07:00