1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

Modify file contributors

This commit is contained in:
zhengxie
2012-10-15 16:40:31 +08:00
parent 5d279c992d
commit 8f7fa68d77

View File

@@ -354,12 +354,12 @@ def get_file_contributors_from_revisions(repo_id, file_path):
""" """
commits = [] commits = []
try: try:
commits = seafserv_threaded_rpc.list_file_revisions(repo_id, file_path, 100) commits = seafserv_threaded_rpc.list_file_revisions(repo_id, file_path, -1)
except SearpcError: except SearpcError:
return [] return []
# Commits are already sorted by date, so the user list is also sorted. # Commits are already sorted by date, so the user list is also sorted.
users = [ commit.creator_name for commit in commits ] users = [ commit.creator_name for commit in commits if commit.creator_name ]
# Remove duplicate elements in a list # Remove duplicate elements in a list
ret = [] ret = []