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

@@ -55,4 +55,12 @@ public interface ClientChangesetHandler
* @return
*/
public ChangesetPagingResult getChangesets(int start, int limit);
/**
* @param path
* @param start
* @param limit
* @return
*/
public ChangesetPagingResult getChangesets(String path, int start, int limit);
}

View File

@@ -247,11 +247,12 @@ public class ScmUrlProvider
* @param repositoryId
* @since 1.8
*
* @param path
* @param start
* @param limit
* @return
*/
public String getRepositoryChangesetUrl(String repositoryId, int start,
public String getRepositoryChangesetUrl(String repositoryId, String path, int start,
int limit)
{
String url = MessageFormat.format(getResourceUrl(URLPATTERN_CHANGESETS),
@@ -268,10 +269,31 @@ public class ScmUrlProvider
{
url = url.concat(s).concat("limit=").concat(String.valueOf(limit));
}
if (path != null) {
url = url.concat(s).concat("path=").concat(path);
}
return url;
}
/**
* Method description
*
*
* @param repositoryId
* @since 1.8
*
* @param start
* @param limit
* @return
*/
public String getRepositoryChangesetUrl(String repositoryId, int start,
int limit)
{
return getRepositoryChangesetUrl(repositoryId, null, start, limit);
}
/**
* Method description
*