使用Clearcase递归签入 [英] Recursive checkin using Clearcase

查看:75
本文介绍了使用Clearcase递归签入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将目录和所有子目录检入明确的案例。
是否有特定的命令可以实现?
当前,我进入每个目录并手动检入每个文件。

I want to check in a directory and all the sub-directories into the clear case. Is there a specific command to achieve it? Currently I am going into each directory and manually checking in each file.

推荐答案

我建议这个问题


现在的问题是检入已更改的所有内容。

这是有问题的,因为通常并非所有内容都已更改,ClearCase会在尝试检查时触发错误消息在相同的文件中。这意味着您将需要2个命令:

Now the problem is to checkin everything that has changed.
It is problematic since often not everything has changed, and ClearCase will trigger an error message when trying to check in an identical file. Meaning you will need 2 commands:



ct lsco -r -cvi -fmt "ci -nc \"%n\"\n" | ct
ct lsco -r -cvi -fmt "unco -rm %n\n" | ct

( ct是'cleartool':在Windows上键入'doskey ct = cleartool $ *'设置别名)

(with 'ct being 'cleartool' : type 'doskey ct=cleartool $*' on Windows to set that alias)

但是如果签入则表示:


  • 首次进入源代码管理

  • 更新可能已在现有版本目录中更改的大量文件

我建议创建一个动态视图并将clearfs导入快照树(带有新文件)。

I would recommend creating a dynamic view and clearfsimport your snapshot tree (with the new files) in the dynamic view.

请参阅此问题此问题


clearfsimport脚本可以更好地多次导入同一组文件,并自动:

the clearfsimport script is better equipped to import multiple times the same set of files, and automatically:




  • 添加新文件,

  • 为先前导入的现有文件创建新版本(但在重新导入的源文件集中进行了修改)

  • 删除已导入但不再出现在文件源集中的文件。

  • 清楚记录导入过程中进行的所有操作。

    • add new files,
    • make new version of existing files previously imported (but modified in the source set of files re-imported)
    • remove files already imported but no longer present in the source set of files.
    • make a clear log of all operations made during the import process.
    •  clearfsimport -preview -rec -nset c:\sourceDir\* m:\MyView\MyVob\MyDestinationDirectory
      

      这篇关于使用Clearcase递归签入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆