1. Delete the element accidently, fail to add

 
Error Message:
Error adding "Path/file.txt" to source control.
Error: duplicate name "file.txt" found in the directory version Path@@/main/<stream_name>/<number>
 
Trigger "PRE_MKELEM" has refuse to let mkelem proceed.
Problem:

Developer create file A in folder B. folder B is under source control. and then add file A into source control and continue work on it.

He delete (it should be rename according to CC) file A accidently. Now when you try to add the file A back to CC, PRE_MKELEM trigger prevent he to do it.


解决的方法是:

(1) 是先找到还有该file的activity,然后点击:Version Tree (在被删文件的上层包处)看那个右键后merge to, 并在点击圈和线的连接点处就可以出现这个叫:Merge Configration 的界面. 选中yes的那个merge the element graphically.

(2)然后再选中合适的版本,就可以把丢失的文件放进SourceControl中了。。

(3)

1. From the target view (where the file element or dir element was removed), click on the version tree of parent directory.

2. On the version tree find out which version have file element or dir element (where it was added)

3. right Click on the version from step2 and select merge to menu

4. Select the target view version (where eye was pointing)

5. Make sure you click the check box (In merge confirmation dialog box, select "Yes" and mark "merge the element graphically". CC ask "do you want to create the branch?, select "Yes")

6. Pls select the version that you want. If you can not make choice, pls click the selection with underscore. Then all selection will be enabled. While doing the merge, make sure, you get back those elements in the result windows

7. Save the merge and make sure the elements exist

8. Once confirmed, go ahead and check-in the parent dir


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值