【问题标题】:SVN Update - Most Simple Merge - After merge its still not happySVN 更新 - 最简单的合并 - 合并后它仍然不开心
【发布时间】:2014-12-23 15:19:50
【问题描述】:

尝试学习 SVN 的基础知识(目前使用 SilkSVN 命令行)。我创建了一个冲突,做了“SVN更新”并选择了合并,然后“(2)使用你的版本。它说“完成了“Sample1.ps1”的合并。但随后它将菜单放回屏幕上并希望选择另一个选项。只有一个文件有冲突。为什么我合并后更新没有成功完成?

c:\Code\Demo>svn commit -m "测试冲突" 发送 Sample1.ps1 svn: E155011: 提交失败(详情如下): svn: E155011: 文件 'C:\Code\Demo\Sample1.ps1' 已过期 svn: E160028: 文件 '/Sample1.ps1' 已过期

c:\Code\Demo>svn update
Updating '.':
C    Sample1.ps1
Updated to revision 5.
Conflict discovered in file 'Sample1.ps1'.
Select: (p) postpone, (df) show diff, (e) edit file, (m) merge,
        (mc) my side of conflict, (tc) their side of conflict,
        (s) show all options: m
Merging 'Sample1.ps1'.
Conflicting section found during merge:
(1) their version (at line 6)         |(2) your version (at line 6)
--------------------------------------+--------------------------------------
Write-Host "The Demo2 Change End"     |Write-Host "The End - Some other Demo
--------------------------------------+--------------------------------------
Select: (1) use their version, (2) use your version,
        (12) their version first, then yours,
        (21) your version first, then theirs,
        (e1) edit their version and use the result,
        (e2) edit your version and use the result,
        (eb) edit both versions and use the result,
        (p) postpone this conflicting section leaving conflict markers,
        (a) abort file merge and return to main menu: 2
Merge of 'Sample1.ps1' completed.
Select: (p) postpone, (df) show diff, (e) edit file, (m) merge,
        (r) mark resolved, (mc) my side of conflict,
        (tc) their side of conflict, (s) show all options: s

【问题讨论】:

  • 使用svn up,我通常最终选择postpone 并自己手动解决问题。然后,使用svn resolved 标记文件已解析。我不喜欢在更新过程中尝试解决问题。

标签: svn merge


【解决方案1】:

我只需要为“已解决”选择“R”。我认为合并解决了它,不知道为什么需要最后一步。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-19
    • 1970-01-01
    • 2016-11-01
    • 2022-01-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多