获取化石接受提交时的几个标签?

时间:2012-07-07 20:09:26

标签: fossil

我真的很想,如果我可以这样做:

fossil commit --tag 0.1.2 release

并且化石会将0.1.2release添加为标记。

我该如何做到这一点?

修改
我按照建议在窗户上建造化石,解决了这个问题。

1 个答案:

答案 0 :(得分:2)

您可以多次重复--tag选项,例如fossil commit --tag 0.1.2 --tag release

d:\test>fossil new test
project-id: 6cf7c1419425e47a71c35900179cb879a68fe495
server-id:  3a9e9a972204274d5a137b9e50df9a54928c4f96
admin-user: Eigenaar (initial password is "846ac5")

d:\test>fossil open test

d:\test>echo hello >world

d:\test>fossil add world
ADDED  world

d:\test>fossil commit --comment "First release" --tag 0.1.2 --tag release
New_Version: 761d2a6c3be8fc22413b5ddedbab46e5500b1b38

d:\test>fossil info
project-name: <unnamed>
repository:   d:/test/test
local-root:   d:/test/
user-home:    C:/Users/Eigenaar/AppData/Local
project-code: 6cf7c1419425e47a71c35900179cb879a68fe495
checkout:     761d2a6c3be8fc22413b5ddedbab46e5500b1b38 2012-07-09 21:13:17 UTC
parent:       1099fa0a0516d4b8a57306c4ee449f86a44f534d 2012-07-09 21:13:17 UTC
tags:         trunk, 0.1.2, release
comment:      First release (user: Eigenaar)