开发中常常被一个问题困扰:
pc本地checkout的工程,导入eclipse后,无法与eclipse关联上,没办法直接在eclipse上操作svn。
最后不得不在eclipse中也checkout出一份拷贝,很闹心。
我们理一理svn的工作原理:
1、svn通过 .svn文件夹来存储版本信息;
2、只要
svn客户端与eclipse svn插件都能解析.svn文件夹即可,也就是说协议要一致。
那么,只要svn客户端与eclipse svn插件的遵循的协议一致,就能够互通了;通过网上的寻找,找到了他们的对应关系:
Subclipse 1.4.x includes and requires Subversion 1.5.x client features and working copy format.
Subclipse 1.6.x includes and requires Subversion 1.6.x client features and working copy format.
Subclipse 1.8.x includes and requires Subversion 1.7.x client features and working copy format.
Subclipse 1.10.x includes and requires Subversion 1.8.x client features and working copy format.