Subversion - 创建一个分支并向其添加以下所有修订

Subversion - Make a branch and add all the following revisions to it

我有一个颠覆项目。我想在修订版 16000 处创建一个分支,并在其中包含直到 16011 的所有修订版。然后我想从主干中删除 16001 到 16011,因为我只希望这些修订在分支中。 有办法吗?

顺便说一句,我正在使用 toirtoise svn。

I would like to make a branch at revision 16000 and include all the revisions up to 16011 in it.

为了简化它 - 从版本 16011 创建分支。

右键单击 TortoiseSVN > Branch... > Speciffic revision in repository 并指定 16011。

I then would like to remove 16001 to 16011 from the trunk since I just want those revisions to be in the branch.

使用reverse merge实现:

右键单击 TortoiseSVN > Merge... > Merge a range of revisions... > Reverse merge。单击 Show log 并选择范围从 16001 - 160011。

别忘了commit

Note:

Since TortoiseSVN never loses data, your “rolled back” revisions still exist as intermediate revisions in the repository. Only the HEAD revision was changed to a previous state. If you want to make revisions disappear completely from your repository, erasing all trace that they ever existed, you have to use more extreme measures. Unless there is a really good reason to do this, it is not recommended. One possible reason would be that someone committed a confidential document to a public repository.

The only way to remove data from the repository is to use the Subversion command line tool svnadmin. You can find a description of how this works in the Repository Maintenance .