Show More
@@ -37,6 +37,7 b' from rhodecode.lib.vcs.backends.git.diff' | |||||
37 | def get_svn_files(repo, vcs_repo, refs): |
|
37 | def get_svn_files(repo, vcs_repo, refs): | |
38 | txn_id = refs[0] |
|
38 | txn_id = refs[0] | |
39 | files = [] |
|
39 | files = [] | |
|
40 | ||||
40 | stdout, stderr = vcs_repo.run_svn_command( |
|
41 | stdout, stderr = vcs_repo.run_svn_command( | |
41 | ['svnlook', 'changed', repo.repo_full_path, '--transaction', txn_id]) |
|
42 | ['svnlook', 'changed', repo.repo_full_path, '--transaction', txn_id]) | |
42 |
|
43 | |||
@@ -63,10 +64,17 b' def get_svn_files(repo, vcs_repo, refs):' | |||||
63 | parsed_entry['operation'] = rc_op |
|
64 | parsed_entry['operation'] = rc_op | |
64 |
|
65 | |||
65 | if rc_op in ['A', 'M']: |
|
66 | if rc_op in ['A', 'M']: | |
|
67 | ||||
66 | stdout, stderr = vcs_repo.run_svn_command( |
|
68 | stdout, stderr = vcs_repo.run_svn_command( | |
67 |
['svnlook', 'filesize', repo.repo_full_path, path, '--transaction', txn_id] |
|
69 | ['svnlook', 'filesize', repo.repo_full_path, path, '--transaction', txn_id], | |
68 | file_size = int(stdout.strip()) |
|
70 | _safe=True | |
69 | parsed_entry['file_size'] = file_size |
|
71 | ) | |
|
72 | ||||
|
73 | if "Path '{}' is not a file".format(path.rstrip('/')) in stderr: | |||
|
74 | # skip dirs | |||
|
75 | continue | |||
|
76 | ||||
|
77 | parsed_entry['file_size'] = int(stdout.strip()) | |||
70 |
|
78 | |||
71 | files.append(parsed_entry) |
|
79 | files.append(parsed_entry) | |
72 |
|
80 |
General Comments 0
You need to be logged in to leave comments.
Login now