如何确定ClearCase本地视图中的哪些文件尚未添加到源代码管理中? [英] How do I determine what files in my ClearCase local view have not yet been added to source control?

查看:56
本文介绍了如何确定ClearCase本地视图中的哪些文件尚未添加到源代码管理中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在本地ClearCase视图中添加/删除/修改了大量文件,如何确定所有文件都已添加到源代码管理中?

If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control?

推荐答案

对于 快照 视图(您称之为本地视图?),您的答案是正确的。
在动态视图中,简单的

Your answer is correct, for snapshot views (which you call 'local view' ?)
In a dynamic view, a simple

cleartool lsprivate

就足够了。

但是这样可以省去被劫持的文件(这些文件已经已添加到源代码管理中,但可能在ClearCase不知道的情况下进行了修改)

But that would leave out hijacked files (which are already added to source control, but may have been modified without ClearCase knowing it)

所以我建议使用(对于Windows)完成命令:

So I would recommend to complete your command with (for Windows):

for /F "usebackq delims= " %i in (`cleartool ls -r -nxn ^| find "hijacked"`) do @echo %i

对于Unix:

cleartool ls -r -nxn | grep hijacked

这也会使文件结帐(当然,它们也已添加到源代码管理中,但是也应列出,因为它们最终必须提交或取消。)

在快照视图中:

That would also leave files in checkouts (granted, they also are added to source control, but should be also listed as they must be eventually committed or cancelled).
In Snapshot views:

cleartool lscheckout -recur

在动态视图中:

cleartool lsprivate –co

这篇关于如何确定ClearCase本地视图中的哪些文件尚未添加到源代码管理中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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