TFS:使用Workspace.Merge方法重命名文件的问题 [英] TFS: Problem the renamed files with Workspace.Merge Method

查看:58
本文介绍了TFS:使用Workspace.Merge方法重命名文件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Workspace.Merge 方法执行合并,但是当我指定MergeOptionsEX  = baseless时,源版本中重命名文件的状态会更改为在目标版本。


如果没有退出,无底选项会链接两个版本。所以我将此选项更改为none,重命名文件的问题已解决,但我认为此解决方案无法建立两个版本之间的链接。

 Workspace.Merge( sourcePathSpec,targetPath,versionFrom,versionTo,lockLevel,MergeOptionsEx.Baseless); 










解决方案

嗨redouane mejdi,


欢迎来到MSDN论坛。


此论坛正在讨论Visual Studio WPF / SL Designer,Visual Studio Guidance Automation Toolkit,开发人员文档和帮助系统,以及Visual Studio
编辑器。


根据您的描述,您的问题与Team Foundation版本控制有关。由于TFS论坛已被锁定,TFS的讨论已经移动,
您可以获得有关
Stack Overflow
,只需在您的帖子中添加一个带有TFS的标签,然后您就可以获得TFS成员的支持。


感谢您的理解。


问候,


Judyzh


I'm using the Workspace.Merge method to perform a merge, but when I specify the MergeOptionsEX = baseless, the state of the renamed files in the source version is changed to create a branch in the destination version.

Baseless option links two versions if it doen't exit. So I changed this option to none, the problem of renamed files is solved but I think this solution can't establish the link between two versions.

Workspace.Merge(sourcePathSpec, targetPath, versionFrom, versionTo, lockLevel, MergeOptionsEx.Baseless);






解决方案

Hi redouane mejdi,

Welcome to the MSDN forum.

This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

According to your description, your issue is related to Team Foundation Version Control. Since the TFS forums have been locked, the discussion for TFS has moved, you could get advice on Stack Overflow and just add a tag with TFS in your thread, and then you would get support from TFS members.

Thanks for your understanding.

Regards,

Judyzh


这篇关于TFS:使用Workspace.Merge方法重命名文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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