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

查看:8
本文介绍了如何确定我的 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天全站免登陆