集市自动标签

发布于 2024-12-09 07:03:20 字数 190 浏览 5 评论 0原文

我想使用automatic_tag_name钩子来自动创建标签名称,而不需要手动输入

我尝试这样写:automatic_tag_name(branch name,10)=“GIL”

  1. 这是正确的语法吗? (我在文档中找到了一些有关它的信息)
  2. 是否可以从文件创建标签名称?该文件将仅包含标签名称

I want to use the automatic_tag_name hook to automatic create tag name without the need of 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲世九天 2024-12-16 07:03:20

请参阅此处的示例 pahe:
http://doc.bazaar.canonical.com/latest/en /user-guide/hooks.html

所以正确的调用应该是:

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')

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')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文