0

我有一个分支的项目,一堆文件(F1)被移动到不同的目录并更改(F2)。现在,我想将分支合并回主干并保留修订历史记录,但我想保留 F1 和 F2。有没有办法在颠覆中做到这一点?

4

2 回答 2

1

What you're asking sounds contradictory to me. Maybe I just don't understand what you're asking.

If you just want to access F1 if the need arises, tag F1 before you merge the F2 branch.

If you merge the branch back into the trunk, the F2 files will overlay the F1 files. That's what a merge is.

If you want to keep both the F1 and F2 files, you would add the branch to the trunk and delete the branch. That way, the F1 and F2 files would both be available. I would do this by exporting the working copy of F2, sharing the working copy of F2, and deleting the original F2.

于 2010-07-01T18:29:28.563 回答
0

我想通了。

我需要检查最初分支的主干修订版。然后,我需要将 F1 文件 SVN 复制到它们各自的新目录,以便副本可能变为 F2。然后,合并分支中的一系列修订,以使 F2 文件保持最新。最后,合并一系列修订以使 F1 文件保持最新。瞧!历史和一切都被保留下来,我得到了 F1 和 F2。

于 2010-07-02T14:13:16.927 回答