对 Mercurial 存储库进行插桩处理
假定存储库已存在且可供访问。Mercurial 示例配置文件位于 scmloop.zip 中的 hg 目录下。
1. 检查 .hg 目录 (存储库根目录下的隐藏目录) 下 Mercurial 存储库的 hgrc 文件。如果已存在该文件,将提供的 hgrc 文件的内容附加到原始文件 (使用首选编辑器),否则将其复制到 .hg 目录。
2. 为使用此存储库的项目设置 repositoryId 属性:[codebeamer] repositoryId = 266 # (number!) ...
3. 创建名为 hgrc-Codebeamer 的新文件。
4. 将以下内容写入该文件:
#DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
[web]
allow_push = *
allow_read = *
[hooks]
changegroup = "${hookDirectory}/changegroup-hook" hg_post_receive
pretxnchangegroup = "${hookDirectory}/changegroup-hook" hg_pre_update
[extensions]
# enables the strip command
mq =
[ui]
merge = internal:merge
5. hgrc-codebeamer 替换字符串 ${hookDirectory}}} with the absolute path of the directory where you copied the scripts to. 的所有实例。
6. changegroup-hook(.bat) 脚本从 hg/<operating_system> (在 scmloop.zip 中) 复制到所提供的 Mercurial 存储库的 .hg 目录。
7. 替换字符串 ${scmloop}}} with the actual path of the scmloop script.
8. 在 Linux/Unix 系统中,必须确保脚本 (例如,使用命令 chmod) 是可执行的。
9. (可选) 在 hgrc-codebeamer 中,设置之前在 Codebeamer 中注册的主机名。该值将是默认运行 Mercurial 的计算机的主机名。[codebeamer] host = myscmhost ...
10. (可选) 在 hgrc-codebeamer 中,根据 Codebeamer 提交 URL 的设置来设置 hgrc 文件中的 cburl 特性:[codebeamer] cburl = http://mycbhost ...
11. (可选) 根据网络设置检查并设置 hgrc 文件中的 proxyhost、proxyport、proxyuser 和 password 特性,例如:[codebeamer] proxyhost = myproxy proxyport = 81 proxyuser = myproxyuser password = v3ght # put password here in a base64 encoded form ...
在线工具可用于 base64 编码,例如 http://www.motobit.com/util/base64-decoder-encoder.asp
* 
(可选) 要忽略 Codebeamer 可访问性错误,设置 ignore 标志 (默认值为 false):[codebeamer]...ignore = true
这对您有帮助吗?