开发者

How to svn-copy a file over an existing one?

开发者 https://www.devze.com 2023-01-10 02:53 出处:网络
I have two svn controlled files A and B, where A only contains a开发者_开发百科 few lines and B is huge and has a long history. Now I want to replace the content of file A with the content of file B.

I have two svn controlled files A and B, where A only contains a开发者_开发百科 few lines and B is huge and has a long history. Now I want to replace the content of file A with the content of file B. But I want to keep the history of (the content of) file B.

What I would like to do is:

svn copy B A

But svn tells me that A isn't a directory, so this isn't possible.

I could first delete file A, commit and then move B to A, but I don't like to have a revision in my repo that isn't consistent (doesn't compile).

Is there a way to solve this problem?


What's wrong with the following?

svn delete A
svn copy B A
svn commit

Am I missing something?

0

精彩评论

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