开发者

Seed a new SVN repository with a revision number

开发者 https://www.devze.com 2022-12-23 05:33 出处:网络
I am thinking about creating a new repository in SVN for a section of our main project. I would like to respect the revision number we have got to, though.

I am thinking about creating a new repository in SVN for a section of our main project. I would like to respect the revision number we have got to, though.

So my question is: Is it possible, when creating a new SVN repository to "seed" the revision number to, say 11开发者_C百科00?

Thanks :)


See the section in the SVN book titled Filtering Repository History. It shows how you can extract part of repository A (including all history) and put it in its own repository B.

By default the svndumpfilter command will keep the revision numbers, though it has options to control that.


Can I advise not to do that? If it's a section of your main project, put it in the same repository. If you think you need to synchronise revision numbers, remember that you're going to get out of sync again very quickly and that you're going to have two repository with identical but probably-unrelated commits.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号