【发布时间】: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标记文件已解析。我不喜欢在更新过程中尝试解决问题。