Is the contents of .svn folder standardised and cross-compatible between SVN-clients?

女生的网名这么多〃 提交于 2020-01-06 04:26:10

问题


Can I for example use one svn client to create a WC and another svn client to commit that WC?

This has worked for me before, but is it guaranteed to work?

The actual case here is the problem of offline work. The checkout needs to be done by one machine and the work on the WC on another. It would be valuable for the offline machine to still manipulate the WC (adding/removing files etc) instead of working with an "export" and then merging the work on the machine with the SVN-repo.

I've looked around for information regarding this but I haven't found any. If you have an answer it'd be great if you have a source reference as well.


回答1:


The format of the working copy is defined by the client. Usually you can checkout a working copy via SVN client (1.1) work on the WC with a client (1.2) and so on but not the other way. Checkout out with SVN client (1.4) and committing via SVN client (1.5 or 1.6) after that the working copy has been upgraded to WC format 1.5 or 1.6 which means you can't access the working copy via SVN client 1.4 anymore. The server does not define the format of the working copy. Cause you can access a SVN repository (for example 1.2 repository) via a SVN client 1.6 ...(some functionallaty does not work) but committing etc. is working fine (see release notes of 1.6).




回答2:


As long as you have the same version of subversion linked into your clients then it is guaranteed to work. This is because the clients do not operate directly on the WC, but do so through the subversion 'library'.

Now, there can be an issue with clients that are linked with different versions of subversion, I noticed this back when I upgraded TortoiseSVN that used the new version 1.6 subversion libs, but still used the old AnkhSVN that was linked to v1.5, as a result Tortoise automatically upgraded the WCs which meant Ankh no longer recognised them. A quick download of the updated Ankh fixed that, but it was annoying for a few days while the Ankh team released their new version.

so - yes, all clients use the same format of WC, but when upgrading (to major versions of svn, going from 1.6.11 to 1.6.12 will not break anything, but going from 1.6.12 to 1.7 will) wait a little while so all your clients can release their new versions.



来源:https://stackoverflow.com/questions/4460321/is-the-contents-of-svn-folder-standardised-and-cross-compatible-between-svn-cli

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!