fast-export icon indicating copy to clipboard operation
fast-export copied to clipboard

Add tag filtering in plugins

Open LuluDavid opened this issue 1 year ago • 1 comments

Hi,
Thanks for this useful tool, I am writing this issue because I wanted to suggest an improvement.
I already wrote a plugin to escape branch names according to my conventions in commit messages, and I wanted to know if it would be possible to add an additional dedicated function in plugins to process tags in export_tags ?
This would allow me to do the same escape in there for forbidden characters.
Thanks for reading, hope it is clear enough.

LuluDavid avatar May 31 '24 12:05 LuluDavid

Feel free to create a PR, I would be positive to adding such a plugin method. It should follow the same pattern as commit_message_filter in that the mapping file is considered first and the mapped name is given to the plugin.

An alternative external solution would be to just write a small tool that just filters the output from hg branches in order to create a mapping file.

frej avatar Jun 07 '24 13:06 frej