如何以大写字母快速签入大量文件 [英] How can I quickly checkin a large number of files in clearcase

查看:67
本文介绍了如何以大写字母快速签入大量文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要尝试检入大量文件。此过程需要完成多次,并且很耗时间和资源。我正在使用以下命令来执行此操作:

I have a large number of files that I am trying to check in. This process needs to be done several times and is time and resource consuming. I am using the follow command to do this:

cleartool lsco -cvi -all -s | awk’{print cleartool ci -c \<签入名称> \<指向vob的路径> | sh

此命令确实有效,但是运行时间很长,因为每个文件都是单独检入的。是否可以一次签入所有文件,或者可以更快地单独签入文件。

This command does work, but it takes a very long time to run, as each file is checked in individually. Is it possible to checkin all files at once, or perhaps a faster method of checkin in the files individually. Is it possible to use the same concept, but for a mass checkout?

推荐答案

正如我在 每个开发人员都应了解的基本clearcase概念是什么?,ClearCase仍然是逐个文件的VCS,表示每个操作(签出,签入,

As I mentioned in "What are the basic clearcase concepts every developer should know?", ClearCase remains a file-by-file VCS, meaning each operation (checkout; checkin, merge) is done file by file.

clearfsimport 仍然是一种可能的批量操作(即使后面场景中,它仍然会结帐或 mkelem 来新文件,一一复制和签入文件)

clearfsimport remains one possible "bulk" operation (even though behind the scene, it will still checkout or mkelem for new files, copy, and checkin the files one by one)

这意味着您可以将一个视图用作源文件夹( clearfsimport 将导入任何文件夹(ClearCase视图与否),以及一个快照视图,其配置规范与目的地相同。请参阅 清除情况,使用clearfsimport进行暴力更新如何使用ClearCase递归添加到源代码控制...?

使用 -rmane 选项,它甚至会删除源文件夹中不再存在的文件。请参阅 删除未使用的源代码文件

That means you can use one view as source folder (clearfsimport will import any folder, ClearCase view or not), and a snapshot view with the same config spec as destination. See "ClearCase, use clearfsimport to perform brute force update" and "How can I use ClearCase to "add to source control …" recursively?".
With the -rmane option, it will even remove files which are no longer present in the source folder. See "Remove unused source code files".

这篇关于如何以大写字母快速签入大量文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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