Show More
@@ -623,7 +623,7 b' def git_post_receive(unused_repo_path, r' | |||||
623 | def _get_extras_from_txn_id(path, txn_id): |
|
623 | def _get_extras_from_txn_id(path, txn_id): | |
624 | extras = {} |
|
624 | extras = {} | |
625 | try: |
|
625 | try: | |
626 |
cmd = [ |
|
626 | cmd = [settings.SVNLOOK_EXECUTABLE, 'pget', | |
627 | '-t', txn_id, |
|
627 | '-t', txn_id, | |
628 | '--revprop', path, 'rc-scm-extras'] |
|
628 | '--revprop', path, 'rc-scm-extras'] | |
629 | stdout, stderr = subprocessio.run_command( |
|
629 | stdout, stderr = subprocessio.run_command( | |
@@ -638,7 +638,7 b' def _get_extras_from_txn_id(path, txn_id' | |||||
638 | def _get_extras_from_commit_id(commit_id, path): |
|
638 | def _get_extras_from_commit_id(commit_id, path): | |
639 | extras = {} |
|
639 | extras = {} | |
640 | try: |
|
640 | try: | |
641 |
cmd = [ |
|
641 | cmd = [settings.SVNLOOK_EXECUTABLE, 'pget', | |
642 | '-r', commit_id, |
|
642 | '-r', commit_id, | |
643 | '--revprop', path, 'rc-scm-extras'] |
|
643 | '--revprop', path, 'rc-scm-extras'] | |
644 | stdout, stderr = subprocessio.run_command( |
|
644 | stdout, stderr = subprocessio.run_command( | |
@@ -664,7 +664,7 b' def svn_pre_commit(repo_path, commit_dat' | |||||
664 | return 0 |
|
664 | return 0 | |
665 |
|
665 | |||
666 | extras['hook_type'] = 'pre_commit' |
|
666 | extras['hook_type'] = 'pre_commit' | |
667 | extras['commit_ids'] = [] |
|
667 | extras['commit_ids'] = [txn_id] | |
668 | extras['txn_id'] = txn_id |
|
668 | extras['txn_id'] = txn_id | |
669 | extras['new_refs'] = { |
|
669 | extras['new_refs'] = { | |
670 | 'total_commits': 1, |
|
670 | 'total_commits': 1, |
General Comments 0
You need to be logged in to leave comments.
Login now