bazaar auto tag
I want to use the automatic_tag_name hook to automatic create tag name without the need o开发者_如何转开发f manually typing
I tried to write it like it : automatic_tag_name(branch name,10)= "GIL"
- Is it the correct syntax? (i found iittle information on it in the documents)
- Is it possible to create tag name from a file? this file will contains only the tag name
See this example pahe here: http://doc.bazaar.canonical.com/latest/en/user-guide/hooks.html
SO correct call should be:
def post_push_autotag(push_result):
automatic_tag_name(push_result.new_revno)
branch.Branch.hooks.install_named_hook('post_push_autotag', post_push_autotag, 'My autotag')
精彩评论