开发者

Why is SVN over-writing some local files when synchronizing with the repository?

I am using subclipse to commit changes to SVN. Some files work, e.g. build.properties (I am developing a J2EE application) but most 开发者_如何学JAVAlocal changes are overwritten to match the version in the repository when I synchronize, and it says "no structural differences"?

Thanks, Jon


This sounds like a bug that was specific to Eclipse 3.5. It was fixed a long time ago so I have to assume you are using an old version of Subclipse. The latest is 1.6.10.

http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA


I am not sure, how the local files can get over-written when you synchronise.(assuming you don't mean "synchronise" in the literal sense. You mean the option that subclipse plugin provides.)

I follow the following protocol for committing a file change.

  • Do an update of the file. This makes sure , your local copy is upto date. SVN will report a merge conflict, if it is not able to merge the remote copy to your local one. In which case you may do a compare with graphical diff output, and get the remote changes into your local file manually. Then do an update. This time, SVN merge of the remote file to your local file will succeed.

  • Commit your file to the SVN repos.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜