SVN:有什么简单的方法可以将一个文件的一系列修订历史记录移动到另一个文件中?

发布于 2025-01-07 12:28:49 字数 1059 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

转角预定愛 2025-01-14 12:28:49

如果您在 /trunk/Project_Charter_B.docx 日志中看不到这样的数据“...(来自...”,那么您将头疼来恢复关系

svn log http://mayorat.ursinecorner.ru:8088/svn/Hello/branches/i18n/Goededag.txt -v

r23 | lazybadger | 2010-07-17 06:05:00 +0600 (Сб, 17 июл 2010) | 1 line
Changed paths:
   A /branches/i18n/Beaujour.txt (from /branches/i18n/Hello.fr.txt:22)
   A /branches/i18n/GuterTag.txt (from /branches/i18n/Hello.de.txt:20)
   D /branches/i18n/Hello.de.txt
   D /branches/i18n/Hello.en.txt
   D /branches/i18n/Hello.fr.txt
   A /branches/i18n/Hello.txt (from /branches/i18n/Hello.en.txt:20)

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

svn log http://mayorat.ursinecorner.ru:8088/svn/Hello/branches/i18n/Goededag.txt -v

r23 | lazybadger | 2010-07-17 06:05:00 +0600 (Сб, 17 июл 2010) | 1 line
Changed paths:
   A /branches/i18n/Beaujour.txt (from /branches/i18n/Hello.fr.txt:22)
   A /branches/i18n/GuterTag.txt (from /branches/i18n/Hello.de.txt:20)
   D /branches/i18n/Hello.de.txt
   D /branches/i18n/Hello.en.txt
   D /branches/i18n/Hello.fr.txt
   A /branches/i18n/Hello.txt (from /branches/i18n/Hello.en.txt:20)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文