added to view history of the specific file.

This commit is contained in:
youngwan
2011-11-14 10:43:34 +09:00
parent 996ad0b044
commit c0905b8a14
9 changed files with 300 additions and 11 deletions

View File

@@ -103,6 +103,43 @@ public class JerseyClientChangesetHandler implements ClientChangesetHandler
return result;
}
/**
* Method description
*
*
* @param start
* @param limit
*
* @return
*/
@Override
public ChangesetPagingResult getChangesets(String path, int start, int limit)
{
ChangesetPagingResult result = null;
String url =
session.getUrlProvider().getRepositoryChangesetUrl(repository.getId(),
start, limit);
WebResource resource = session.getClient().resource(url);
ClientResponse response = null;
try
{
response = resource.get(ClientResponse.class);
if (response.getStatus() != ScmClientException.SC_NOTFOUND)
{
ClientUtil.checkResponse(response, 200);
result = response.getEntity(ChangesetPagingResult.class);
}
}
finally
{
ClientUtil.close(response);
}
return result;
}
//~--- fields ---------------------------------------------------------------
/** Field description */