diff --git a/README.md b/README.md index 31610a8..46c3fa0 100644 --- a/README.md +++ b/README.md @@ -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): ``` diff --git a/hg-fast-export.py b/hg-fast-export.py index ea6c6ac..d830296 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -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']