用于准备测试 findmerge 命令的场景的脚本
我正在测试一个clearcase合并脚本,我希望能够有另一个脚本在每次运行时都可以生成这2个测试场景:
- 修改3个文件以进行简单的合并(100%自动,不需要差异)
- 修改3冲突合并的文件,需要用户解决方案
我想知道的是准备这些文件所需的步骤/clearcase 命令。所有操作都必须通过命令行完成(使用cleartool 命令)。我已经有了一个动态视图和一些可以使用的测试文件。也许我还需要创建一个目标测试分支。
合并是使用 ct findmerge 命令完成的,如下所示:
`cleartool findmerge filepath -fver version -merge -log NUL -c comment`
我需要验证每种情况下的输出,将它们包含在报告中,并确保不需要用户交互。
I'm testing a clearcase merge script and I'd like to be able to have another script that could produce these 2 test scenarios every time it runs:
- Modify 3 files for a trivial merge (100% automatic, no diff needed)
- Modify 3 files for a conflicting merge, user resolution required
What I'd like to know are the steps/clearcase commands needed to prepare these files. All must be done through command-line (using cleartool commands). I already have a dynamic view and some test files I can use. Probably I'll need to create a destination test branch too.
The merge is done using the ct findmerge
command like this:
`cleartool findmerge filepath -fver version -merge -log NUL -c comment`
I need to validate the output in each of the cases, to include them in a report and also ensure that no user interaction is required.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要:
cleartool checkout -nc myFile ;回显新修改>>我的文件; cleartool checkin -nc myFile
用于在一个分支中通过简单的合并来添加进化(在另一个分支中保持相同的文件不变),myFile
的两个版本中的行不同:这将导致不平凡的合并。不要忘记,您还可以在目录级别上进行简单/非平凡的合并(当添加/删除文件时):在<的情况下进行非平凡的合并a href="https://stackoverflow.com/questions/2927206/cleartool-question/2927385#2927385">邪恶双胞胎。
You need:
cleartool checkout -nc myFile ; echo new modif >> myFile ; cleartool checkin -nc myFile
for adding evolution with a trivial merge in one branch (leave the same file untouched in the other branch)myFile
: that will result in non-trivial merge.Don't forget that you can also have trivial/non-trivial merges on the directory level (when files are added/removed): a non-trivial one would be in case of an evil-twin.