SVN为什么到处都放着"<<<<<<< .mine"?

3
这里发生了什么?我使用过TFS和SourceGear Vault,但这些源代码管理器都不会像SVN那样破坏文件。它们实际上会打开一个漂亮的小窗口,让您有机会解决冲突,然后将已解决的代码应用到您的文件中。SVN的方法似乎是在您的代码文件中添加“标记”,之后您必须手动删除这些标记,否则由于设计时错误或格式错误导致页面无法加载,从而意识到您的代码无法构建。最烦人的是项目文件的XML文件被损坏,导致您必须卸载项目并手动编辑XML。

请问有没有一种方法可以告诉SVN不要这样做,以便它像合理的源代码管理器一样运行?


我建议使用带有Subclipse的Eclipse来进行合并和更新。您可以通过查看冲突来执行“主动合并”,以避免更新您的工作副本。如果您的更新引入了冲突,您还可以在问题列表中看到冲突警告,并使用漂亮的GUI解决它们。它还具有平台中立性的好处。 - Mac
3个回答

8

使用合并工具或者像TortoiseSVN这样的GUI客户端,它们会为你完成这项工作,并且使用SVN解决冲突会让你获得更好的体验。


赞同!我们使用Tortoise SVN来完成这个操作。它使合并变得更加容易。 - AlG

5

2

我强烈建议使用TortoiseSVN,并配置它使用GUI差异/合并工具。

It doesn't take too much setting up to use with TortoiseSVN. Open the Settings dialog from the TortoiseSVN Settings menu. In the External Programs section select Diff Viewer and select the External radio and supply the command line argument:

path\DiffMerge.exe /t1=Mine /t2=Original %mine %base

Make sure you supply a valid path to the installed DiffMerge product! When displaying changes this will display your version changes in the left panel with base in the right.

To get the three panel merge select the Merge Tool in the External Programs section, and as before select the External radio and supply the following command line argument:

path\DiffMerge.exe /t1=Mine /t2=Base /t3=Theirs /r=%merged %mine %base %theirs

This will display three columns with your version, followed by the base version followed by the repository version - allowing you to merge changes from both sides into the centre at your leisure...

Source


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接