Clearcase 中的 echo 命令是什么?
我有一个关于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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当您有一个“签出但已删除”的文件时,如 ct ls:
恢复该文件的一个解决方案是再次检出它,但如果您直接这样做,ClearCase 会抱怨无法访问该文件(因为它实际上不再存在)。
因此:
您需要在该文件中包含一些内容才能对其执行
cleartool
命令。因此,即使其内容是假的,它至少允许您继续进行。
然后,您可以再次签出它(
-nc
表示没有注释,但它也意味着“采用当前签出版本上使用的先前注释)另一种恢复它的方法是 取消签出文件:
这也会恢复其内容。
When you have a file which is "checkedout but removed", as described in ct ls:
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:
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)Another way to restore it is to uncheckout the file:
That will also restore its content.
第一条命令向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.只是一个提示:
'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