How to combine SVN commits?

前端 未结 4 1952
逝去的感伤
逝去的感伤 2021-01-14 17:35

How do I take a range of commits in my SVN repository and combine them?

For example, revisions 4-10 exist in the repository and I want to combine them into a new rev

4条回答
  •  北海茫月
    2021-01-14 18:16

    You can't do that without creating a new repository, so better just get over it.

    If you really really need to do this you could probably do it with "svnadmin dump" and "svnadmin load".

    Edit: If you just want to push the commits out of the history of the trunk but are fine with them remaining elsewhere in the repository then something similar to Manu's proposal is a workable solution: Rename trunk to old_trunk, copy the revision before the range you want to merge to trunk, then merge the revisions in the range and commit.

提交回复
热议问题