我该如何绕过一个清晰的“文件已存在”文件?错误? [英] How can I bypass a clearcase "file already exists" error?

查看:73
本文介绍了我该如何绕过一个清晰的“文件已存在”文件?错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过执行以下操作在分支中将文件添加到源代码控制:

I try to add a file in a branch to source control by doing this:

ct mkelem -ci -nc

,我收到此错误:

File already exists in "other_branch" branch.

Resolution: Since this file already exisit in ClearCase you will have to, selectively, merge this file from other_branch branch to your current branch/view.

嗯, other_branch 完全过时了,我想要使用当前的分支文件im尝试按原样合并100%。有没有一种方法可以在命令行上传达此信息以清除大小写?像ct mkelem -force(或-replaceAnyOtherFileWithThisName)-ci -nc?

Well, other_branch is completely obsolete and I would like to use the current branch file im trying to merge 100% as is. Is there a way to communicate this to clearcase on the commandline? Like ct mkelem -force (or -replaceAnyOtherFileWithThisName) -ci -nc?

推荐答案

除了完全删除元素(通常可能很危险,除非您的情况如此,这是关于一个过时的分支)。

There is not many solutions, beside removing completely that element (which can be dangerous in general, except in your case, this is about an obsolete branch).

cleartool rmelem

但是更安全的方法是尝试合并过时的分支 ,忽略除了添加该文件以外的所有更改。

这样,您不必再次 mkelem 同一文件,就可以重复使用现有的一个(并完全更改其内容)。

But a "safer" route would be to try an merge that obsolete branch, ignoring all changes except the addition of that file.
That way, you don't have to 'mkelem' the same file again, you can reuse the one existing (and changing its content completely).

这篇关于我该如何绕过一个清晰的“文件已存在”文件?错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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