特定文件的配置规范
您如何在 ClearCase 中看到特定的文件版本?
如何为该特定文件设置正确的配置规范?
How would you see a specific file version in the ClearCase ?
How to set the right config spec for that specific file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以为特定文件指定特定的选择规则,但这不会帮助您实际访问它。
例如:
仅为
/path/to/my/File
选择分支main
的版本 4。但考虑到父目录 '
path
'、'to
' 和 'my
' 有它们自己的版本(这不太可能为“4”),则该单一规则根本不会选择它们。(不要忘记,目录的内容更改时会进行版本控制:版本 4 意味着其内容已更改 4 次,换句话说,文件或子目录已添加或删除 4 次)
要确保为目录选择正确的版本一个文件,虽然能够访问它,但您需要 2 个按正确顺序排列的规则(如“如何创建分支"):
这样,你会看到正确的该文件的(快照或动态)ClearCase 视图中的版本。
但这不允许签出它(那里没有
-mkbranch
指令)。You can specify a specific selection rule for a specific file, but that won't help you actually accessing it.
For instance:
would select the version 4 of branch
main
only for/path/to/my/File
.But considering that the parent directories '
path
', 'to
', and 'my
' have they own version (which isn't likely to be '4'), they won't be selected at all by that single rule.(Don't forget that directories are versioned when their content changes: version 4 would mean their content have changed 4 times, in other words, that files or subdirectories have been added or removed 4 times)
To be sure to select the right version for a file, while being able to access it, you need 2 rules in the right order (as explained in "How to create a branch"):
That way, you would see the right version in your (snapshot or dynamic) ClearCase view for that file.
But that wouldn't allow to checkout it (no
-mkbranch
directive there).