开发者

SVN - Commit to older revision version

we have a svn repository on a server, and some clients updating/commiting to it.

Now, the server crashed yesterday and the backup available is a week ok old, and has an older svn head saved. Let's say the Head from the backup is revision 2895.

The clients however have revision ie. 2930. When I try to commit to the server, I get an error that the revision on the server is a older one. I can't check in, I can't upgrade and I can't commit.

Has anybody an idea of what I can do to either increment the开发者_开发技巧 revision's counter on the server, or how to make a commit under this circumstances?

Thanks in advance.


Can't you copy locally your 2930, revert to 2895 and then commit everything back to 2896?


One solution is to make a checkout in a new folder and replace the files with the modified ones, then try to commit.

I'm not an expert and there may be a more elegant solution though.


You can make a non-versioned temporary copy of the working copy at rev2930, check out rev2895 to a new folder, overwrite with the copy you made and commit to rev2896. This will require everyone else to do something similar (if they don't have any changes in their working copy, they can just check out a new working copy from rev2896).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜