简体   繁体   English

SVN 通过 Eclipse 合并与命令行不同

[英]SVN Merging Via Eclipse Differs Compared to Command Line

I had some issues integrating my changes to the main repository (moving my branch into the trunk) recently and have some issues understanding why I was experiencing these issues.我最近在将我的更改集成到主存储库(将我的分支移动到主干)时遇到了一些问题,并且在理解我遇到这些问题的原因时遇到了一些问题。

Here is the exact error I was getting:这是我得到的确切错误:

Working copy and merge source not ready for reintegration
svn: Cannot merge into a working copy that has local modifications

For what I understand, this means I have to update my branch to head and rebase with trunk before moving my branch into the trunk.据我了解,这意味着我必须在将分支移动到主干之前将我的分支更新为 head 和 rebase。

Here are the steps I performed in Eclipse:以下是我在 Eclipse 中执行的步骤:

<branch> > Team > Update to HEAD
<branch> > Team > Merge (Targeting <trunk>)
<branch> > Team > Commit...

This produced the error mentioned above.这产生了上面提到的错误。

Performing the following steps via Command Line did not cause any issues:通过命令行执行以下步骤不会导致任何问题:

svn co <svn path to branch>
cd <specifically modified module of branch>
svn merge <path to branch module in trunk>
svn commit -m "<Commit message>"

Could someone help me understand why Eclipse produced these issues.有人可以帮我理解为什么 Eclipse 会产生这些问题。 I understand the steps are slightly different, but I still do not see why I should have ran into those issues.我知道这些步骤略有不同,但我仍然不明白为什么我应该遇到这些问题。

Additionally let me know if any of my terminology is wrong and needs any correcting or further explanation.此外,如果我的任何术语有误,需要任何更正或进一步解释,请告诉我。 Any and all constructive criticism appreciated.任何和所有建设性的批评表示赞赏。

svn: Cannot merge into a working copy that has local modifications means that you have local modifications not committed (you have a dirt workspace). svn: Cannot merge into a working copy that has local modifications意味着您未提交本地修改(您有一个肮脏的工作区)。

If you are sure that you do not have local modifications, then you can try to clean pristine: Team > Cleanup如果你确定你没有本地修改,那么你可以尝试清理原始: Team > Cleanup

Or/and just delete project (delete contents on disk marked) and import from SVN again.或者/并且只是删除项目(删除标记的磁盘上的内容)并再次从 SVN 导入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM