mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
implement mercurial getChangeset with path method
This commit is contained in:
@@ -110,21 +110,38 @@ public class HgChangesetViewer extends AbstractHgHandler
|
||||
public ChangesetPagingResult getChangesets(int start, int max)
|
||||
throws IOException, RepositoryException
|
||||
{
|
||||
return getChangesets(String.valueOf(start), String.valueOf(max), null,
|
||||
null);
|
||||
return getChangesets(null, null, String.valueOf(start),
|
||||
String.valueOf(max), null, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChangesetPagingResult getChangesets(String path, int start, int max)
|
||||
throws IOException, RepositoryException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param path
|
||||
* @param start
|
||||
* @param max
|
||||
*
|
||||
* @return
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws RepositoryException
|
||||
*/
|
||||
@Override
|
||||
public ChangesetPagingResult getChangesets(String path, int start, int max)
|
||||
throws IOException, RepositoryException
|
||||
{
|
||||
return getChangesets(path, null, String.valueOf(start),
|
||||
String.valueOf(max), null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param path
|
||||
* @param revision
|
||||
* @param pageStart
|
||||
* @param pageLimit
|
||||
* @param revisionStart
|
||||
@@ -135,12 +152,15 @@ public class HgChangesetViewer extends AbstractHgHandler
|
||||
* @throws IOException
|
||||
* @throws RepositoryException
|
||||
*/
|
||||
public ChangesetPagingResult getChangesets(String pageStart,
|
||||
String pageLimit, String revisionStart, String revisionEnd)
|
||||
public ChangesetPagingResult getChangesets(String path, String revision,
|
||||
String pageStart, String pageLimit, String revisionStart,
|
||||
String revisionEnd)
|
||||
throws IOException, RepositoryException
|
||||
{
|
||||
Map<String, String> env = new HashMap<String, String>();
|
||||
|
||||
env.put(ENV_PATH, Util.nonNull(path));
|
||||
env.put(ENV_REVISION, Util.nonNull(revision));
|
||||
env.put(ENV_PAGE_START, Util.nonNull(pageStart));
|
||||
env.put(ENV_PAGE_LIMIT, Util.nonNull(pageLimit));
|
||||
env.put(ENV_REVISION_START, Util.nonNull(revisionStart));
|
||||
@@ -164,6 +184,6 @@ public class HgChangesetViewer extends AbstractHgHandler
|
||||
public ChangesetPagingResult getChangesets(String startNode, String endNode)
|
||||
throws IOException, RepositoryException
|
||||
{
|
||||
return getChangesets(null, null, startNode, endNode);
|
||||
return getChangesets(null, null, null, null, startNode, endNode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user