【问题标题】:SVN Merging Via Eclipse Differs Compared to Command LineSVN 通过 Eclipse 合并与命令行不同
【发布时间】:2021-03-20 23:37:35
【问题描述】:

我最近在将我的更改集成到主存储库(将我的分支移动到主干)时遇到了一些问题,并且在理解我遇到这些问题的原因时遇到了一些问题。

这是我得到的确切错误:

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

据我了解,这意味着在将分支移入主干之前,我必须将我的分支更新为 head 并使用主干变基。

以下是我在 Eclipse 中执行的步骤:

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

这产生了上面提到的错误。

通过命令行执行以下步骤不会导致任何问题:

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>"

有人可以帮助我了解 Eclipse 产生这些问题的原因吗?我知道这些步骤略有不同,但我仍然不明白我为什么会遇到这些问题。

另外,如果我的任何术语有误并需要任何更正或进一步解释,请告诉我。任何和所有建设性的批评都表示赞赏。

【问题讨论】:

    标签: eclipse svn


    【解决方案1】:

    svn: Cannot merge into a working copy that has local modifications 表示您未提交本地修改(您有一个 dirt 工作区)。

    如果你确定你没有本地修改,那么你可以尝试清理原始: Team &gt; Cleanup

    或者/并且只是删除项目(删除标记的磁盘上的内容)并再次从SVN导入。

    【讨论】:

    • 谢谢。我也很欣赏替代解决方案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-18
    • 1970-01-01
    相关资源
    最近更新 更多