mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
added to view history of the specific file.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user