Checkout
Branko ─îibej
committed
on 17 Jan
Expose the output arguments of svn_client_blame6 in JavaHL.

[in subversion/bindings/javahl/src/org/apache/subversion]
* callback/BlameRange… Show more
Expose the output arguments of svn_client_blame6 in JavaHL.

[in subversion/bindings/javahl/src/org/apache/subversion]

* callback/BlameRangeCallback.java: New callback for ISVNClient.blame.

* callback/BlameLineCallback.java: Remove unused import.

* ISVNClient.java

 (ISVNClient.blame): Add range callback parameter. Update docstring.

* SVNClient.java

 (SVNClient.blame): Update wrapper and native method declaration.

[in subversion/bindings/javahl/native]

* BlameCallback.h

 (BlameCallback::BlameCallback): Change constructor signature.

 (BlameCallback::get_start_revnum_p, BlameCallback::get_end_revnum_p): New.

 (BlameCallback::setRange): New.

 (BlameCallback::m_start_revnum, BlameCallback::m_start_revnum,

  BlameCallback::m_range_callback_invoked, BlameCallback::m_range_callback): New.

 (BlameCallback::m_line_callback): Renamed from m_callback.

* BlameCallback.cpp: Include svn_private_config.h.

 (BlameCallback::BlameCallback): Update constructor implementation.

 (BlameCallback::callback): Update static callback implementation.

 (BlameCallback::setRange): Implement.

 (BlameCallback::singleLine): Notice changed member variable name.

* SVNClient.cpp

 (SVNClient::blame): Set blame output arguments from the callback.

* org_apache_subversion_javahl_SVNClient.cpp

 (Java_org_apache_subversion_javahl_SVNClient_blame): Update native method.

[in subversion/bindings/javahl/tests/org/apache/subversion/javahl]

* BasicTests.java

 (BlameRangeCallbackImpl): New helper class.

 (testBinaryBlame): Also test the returned revision range.

* ExceptionTests.java

 (testBlameCallback): Check that a null range callback doesn't cause exceptions.

Show less