Clearcase 中的 echo 命令是什么?

发布于 2024-12-04 13:47:11 字数 163 浏览 0 评论 0原文

我有一个关于clearcase的问题,有人帮助我解决了clearcase中的一些问题,他使用了如下命令: echo " " > xxx.log

cleartool co -nc filename 

这是什么意思?

I have a question about clearcase, someone helped me on some issue in clearcase, he used a command as follow: echo " " > xxx.log and

cleartool co -nc filename 

what does this mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

吃→可爱长大的 2024-12-11 13:47:11

当您有一个“签出但已删除”的文件时,如 ct ls

该元素已在此视图中检出,但视图专用文件随后被删除。
您可能已删除该文件。

恢复该文件的一个解决方案是再次检出它,但如果您直接这样做,ClearCase 会抱怨无法访问该文件(因为它实际上不再存在)。

因此:

 echo " " > afile

您需要在该文件中包含一些内容才能对其执行cleartool命令。
因此,即使其内容是假的,它至少允许您继续进行。

然后,您可以再次签出它(-nc 表示没有注释,但它也意味着“采用当前签出版本上使用的先前注释)

 cleartool checkout -nc afile

另一种恢复它的方法是 取消签出文件

 cleartool unco afile

这也会恢复其内容。

When you have a file which is "checkedout but removed", as described in ct ls:

The element was checked out in this view, but the view-private file was subsequently removed.
You may have deleted the file.

A solution to restore that file is to checkout it again, but if you do that directly, ClearCase would complain about being unable to access said file (because it isn't physically there anymore).

Hence the:

 echo " " > afile

You need to have some content in that file in order to make a cleartool command on it.
So even if its content is a bogus one, it at least allows you to proceed.

Then, you can checkout it again (-nc means without comment, but it also means "takes the previous comments used on the current checked out version)

 cleartool checkout -nc afile

Another way to restore it is to uncheckout the file:

 cleartool unco afile

That will also restore its content.

情绪少女 2024-12-11 13:47:11

第一条命令向xxx.log写入一个空格; echo是一个shell命令,与clearcase无关。第二个命令检查不带注释的文件名。这两个命令似乎非常无关,除非还有其他您没有告诉我们的事情。

The first command writes a space to xxx.log; echo is a shell command and has nothing to do with clearcase. The second command checks out filename without comments. These two commands seem to be pretty unrelated, unless there something else you haven't told us.

一抹淡然 2024-12-11 13:47:11

只是一个提示:
'echo' 可能用于清除 xxx.log 文件。

co - 代表签出文件名,
nc - 代表无评论

可能会有所帮助: http://www.yolinux.com/TUTORIALS/ClearcaseCommands .html

Just a tip:
'echo' might to used to clear xxx.log file.

co - stands for check out filename,
nc - stands for no comments

Might be helpful: http://www.yolinux.com/TUTORIALS/ClearcaseCommands.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文