SVN:有什么简单的方法可以将一个文件的一系列修订历史记录移动到另一个文件中?
SVN 专家的模糊问题。
想象两个文件 A 和 B 具有修订历史记录:Ar1 Br1、Ar2 Br2、Ar3 Br3。在 r3 的那个点,我想获取 B 的整个历史并将其附加到 A。换句话说,发现 B 是基于 A 的文件,并且历史上的修订发生在 A3 之后。所以,我希望 SVN 存储库以以下顺序结束: 修订版 1:Ar1, 修订版 2:Ar2, 修订版 3:Ar3, Rev 4:Ar4(来自 Br1), Rev 5:Ar5(来自 Br2), Rev 6:Ar6(来自 Br3)
我知道我可以手动执行此操作(将 B 的每个修订版复制到工作副本中替换 A,提交并重复),但我想知道是否有任何简单的方法来获取序列并只需将其附加到另一个序列即可。
谢谢。
更新:添加了相关历史
r18的SVN日志 |布克斯 | 2012-02-17 12:00:34 -0600(2012 年 2 月 17 日星期五)| 1 行 更改的路径: M /trunk/Project_Charter_B.docx
r12 | M /trunk/Project_Charter_B.docx r12 |布克斯 | 2012-02-17 11:50:46 -0600(2012 年 2 月 17 日星期五)| 1 行 更改的路径: M /trunk/Project_Charter_B.docx
r11 | M /trunk/Project_Charter_B.docx r11 |布克斯 | 2012-02-17 11:47:15 -0600(2012 年 2 月 17 日星期五)| 1 行 更改的路径: A /trunk/Project_Charter_B.docx
r9 |布克斯 | 2012-02-17 11:41:11 -0600(2012 年 2 月 17 日星期五)| 1 行 更改的路径: M /trunk/Project_Charter_A.docx
r8 |布克斯 | 2012-02-17 11:39:02 -0600(2012 年 2 月 17 日星期五)| 1 行 更改的路径: A /trunk/Project_Charter_A.docx
Obscure question for the SVN experts.
Imagine two files, A and B with revision history: Ar1 Br1, Ar2 Br2, Ar3 Br3. At that point of r3, I want to take the whole history of B and append it to A. In other words, it was discovered that B was a file that was based on A and the revisions historically happened after A3. So, I want the SVN repo to end up with this sequence:
Rev 1: Ar1,
Rev 2: Ar2,
Rev 3: Ar3,
Rev 4: Ar4 (from Br1),
Rev 5: Ar5 (from Br2),
Rev 6: Ar6 (from Br3)
I know I can do this manually (copy each Revision of B into a working copy replacing A, commit & repeat), but I was wondering if there was any easy way to pick up the sequence and just append it to another sequence.
Thanks.
Update: added SVN log of relevant history
r18 | buchs | 2012-02-17 12:00:34 -0600 (Fri, 17 Feb 2012) | 1 line
Changed paths:
M /trunk/Project_Charter_B.docx
r12 | buchs | 2012-02-17 11:50:46 -0600 (Fri, 17 Feb 2012) | 1 line
Changed paths:
M /trunk/Project_Charter_B.docx
r11 | buchs | 2012-02-17 11:47:15 -0600 (Fri, 17 Feb 2012) | 1 line
Changed paths:
A /trunk/Project_Charter_B.docx
r9 | buchs | 2012-02-17 11:41:11 -0600 (Fri, 17 Feb 2012) | 1 line
Changed paths:
M /trunk/Project_Charter_A.docx
r8 | buchs | 2012-02-17 11:39:02 -0600 (Fri, 17 Feb 2012) | 1 line
Changed paths:
A /trunk/Project_Charter_A.docx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在 /trunk/Project_Charter_B.docx 日志中看不到这样的数据“...(来自...”,那么您将头疼来恢复关系
If you can't see in log for /trunk/Project_Charter_B.docx such data as here "...(from...", you have big headache to restore relation