Clearcase 重命名问题
我在使用 Clearcase 时遇到问题。发生的事情如下: 我有一个文件 ValidationScripts.js,并且想在同一目录中创建另一个文件 MiscScripts.js。但是,我没有创建新文件,而是意外地将 ValidationScripts.js 重命名为 MiscScripts.js。我尝试使用合并重新创建 ValidationScripts.js 文件,但现在我被困在同一个文件中,但有两个不同的名称:ValidationScripts.js 和 MiscScripts.js。因此,每当我尝试更改 ValidationScripts.js 的内容时,它们也会反映在 MiscScripts.js 上。 有什么办法可以解决这个问题吗?
TIA。
I am experiencing a problem with Clearcase. What happened was the following:
I had a file ValidationScripts.js, and wanted to create another file in the same directory, MiscScripts.js. However, instead of creating a new file, I accidentally renamed ValidationScripts.js to MiscScripts.js. I tried to recreate the ValidationScripts.js file using merge, and now I am stuck with the same file, but with two different names: ValidationScripts.js and MiscScripts.js. So, whenever I try to change to contents of ValidationScripts.js, they are also reflected on MiscScripts.js.
Is there any way to fix this?
TIA.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前尚不完全清楚您做了什么,但您应该做的是这样的,假设文件
MiscScripts.js
已经作为纯(视图私有)文本文件存在,并且 'ct
' 是cleartool
的别名:现在我们必须尝试猜测您实际上做了什么。
我假设您检查了该目录。然后你说:
有两种可能性:
mv ValidationScripts.js MiscScripts.js
ct mv ValidationScripts.js MiscScripts.js
要修复情况 1,您应该简单地运行:
要修复情况 2,您应该取消目录检出或撤消移动:
或者
或者
然后你继续说:
这让我感到困惑......我看不出合并有什么帮助。后一条评论听起来好像您做了类似的事情:
在不确切知道您做了什么的情况下,很难知道要推荐什么。关键问题是:
ct mkelem
创建新文件?lost+found
目录中创建丢失的条目。丢失+找到
文件。MiscScripts.js还没?- 这有多重要,部分取决于之前问题的答案。
It isn't completely clear what you did, but what you should have done is this, assuming that the file
MiscScripts.js
already existed as a plain (view private) text file, and that 'ct
' is an alias forcleartool
:Now we have to try and guess what you actually did.
I will assume you checked out the directory. You then said:
There are two possibilities:
mv ValidationScripts.js MiscScripts.js
ct mv ValidationScripts.js MiscScripts.js
To fix case 1, you should simply have run:
To fix case 2, you should either cancel the directory checkout or undo the move:
Either
Or
You then go on to say:
And this has me puzzled...I can't see how merge would help. The latter comment sounds as if you did something like:
Without knowing exactly what you've done, it is a little difficult to know what to recommend. Key issues are:
ct mkelem
to create a new file?lost+found
directory.lost+found
files.MiscScripts.js
yet?添加到 Jonathan 的 回答,您需要检查
ValidationScripts.js
父目录的历史记录(cleartool lsvtree -graph
):您将看到已经发生了什么在所述目录中添加/删除。该目录中的简单“cleartool ls”还可以显示
ValidationScripts.js
和MiscScripts.js
之间是否存在符号链接。这就像您尝试恢复已删除的文件,如“中所述恢复已命名为 rmname 的元素,但生成了错误的“
cleartool ln
”。To add to Jonathan's answer, you need to check the history (
cleartool lsvtree -graph
) of the parent directory ofValidationScripts.js
: you will see what has been added/removed in said directory.A simple 'cleartool ls' in that directory can also show you if there is a symlink between
ValidationScripts.js
andMiscScripts.js
.That would be like you tried to restored a deleted file, as described in "Restore an element that has been rmnamed", but made the wrong '
cleartool ln
'.