开发者

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"

  1. Is it the correct syntax? (i found iittle information on it in the documents)
  2. 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')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜