1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-01 15:36:37 +00:00

Support pagination in listing file histories.

Keep at least 2 versions (if exists) when listing file history.
This commit is contained in:
cuihaikuo
2017-12-08 11:58:24 +08:00
parent 21dbae0e2b
commit 936cfd8c74
11 changed files with 92 additions and 90 deletions

View File

@@ -509,8 +509,8 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
pass
get_dirent_by_path = seafile_get_dirent_by_path
@searpc_func("objlist", ["string", "string", "int", "int", "int"])
def seafile_list_file_revisions(repo_id, path, max_revision, limit, show_days):
@searpc_func("objlist", ["string", "string", "string", "int"])
def seafile_list_file_revisions(repo_id, commit_id, path, limit):
pass
list_file_revisions = seafile_list_file_revisions