mirror of
https://github.com/frej/fast-export.git
synced 2025-11-02 17:25:48 +01:00
Add revision to commit_data for commit plugins
Co-Authored-By: ostan89@gmail.com
This commit is contained in:
committed by
Ondrej Stanek
parent
50631c4b34
commit
5c1cbf82b0
@@ -167,7 +167,7 @@ defined filter methods in the [dos2unix](./plugins/dos2unix) and
|
||||
[branch_name_in_commit](./plugins/branch_name_in_commit) plugins.
|
||||
|
||||
```
|
||||
commit_data = {'branch': branch, 'parents': parents, 'author': author, 'desc': desc}
|
||||
commit_data = {'branch': branch, 'parents': parents, 'author': author, 'desc': desc, 'revision': revision}
|
||||
|
||||
def commit_message_filter(self,commit_data):
|
||||
```
|
||||
|
||||
@@ -304,7 +304,7 @@ def export_commit(ui,repo,revision,old_marks,max,count,authors,
|
||||
author = get_author(desc,user,authors)
|
||||
|
||||
if plugins and plugins['commit_message_filters']:
|
||||
commit_data = {'branch': branch, 'parents': parents, 'author': author, 'desc': desc}
|
||||
commit_data = {'branch': branch, 'parents': parents, 'author': author, 'desc': desc, 'revision': revision}
|
||||
for filter in plugins['commit_message_filters']:
|
||||
filter(commit_data)
|
||||
branch = commit_data['branch']
|
||||
|
||||
Reference in New Issue
Block a user