svn 客户端/服务器版本 [英] svn client/server versions

查看:39
本文介绍了svn 客户端/服务器版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我理解正确的 subversion 版本定义:

If I understand correctly version of subversion defines:

  • 服务器上的结构存储库
  • 客户端工作副本的结构
  • 客户端和服务器之间的 API

一旦我们安装了 svn 服务器,我们就不会接触/升级它.

Once we've install svn server, we don't touch/upgrade it.

客户端的情况更复杂.

在客户端 (Windows),我们目前使用 tortoisesvn.它的版本(如果我错了请纠正我)对应于颠覆版本.

On client side (Windows) we currently use tortoisesvn. It's version (correct me if I'm wrong) is corresponding to subversion version.

现在,我们要将应用程序移植到 Linux,因此我们考虑使用额外的 svn 客户端(svn 命令行实用程序、Eclipse 插件和一些 GUI 前端).

Now, we're going port our application to Linux and therefore we consider using additional svn clients (svn command line utility, Eclipse plugin and some GUI frontend).

现在问题:

  1. 是否有可能多个不同的客户使用相同的结账代码?如果是,则意味着我需要仔细选择要使用的客户端版本,因为每个客户端都希望在 .svn 目录中找到特定的格式/数据?

  1. Is it possible several different clients will work on the same checkout code? If yes thus it means that I need carrefully pick up version of clients to be used, since each client expects a particular format/data be found in .svn directory?

服务器和客户端的版本有什么关系?例如,如果服务器端是 1.4 而客户端是 1.6,那么这意味着一些 1.6功能不起作用?

What is the relationship between version of server and client side? If for example server side is 1.4 and client is 1.6, thus it means that some 1.6 features won't work?

推荐答案

强烈不建议您尝试针对同一个检出目录使用不同的 Subversion 客户端,尤其是当它们运行在不同的平台(即跨网络).Subversion 使用文本文件的行尾执行特定于平台的操作,如果您在 Windows 上检出,然后在 Linux 上检入相同的工作副本(例如),您可能会不小心触及每个文件的每一行 通过添加虚假的 CRLF 行结尾.

I would strongly not recommend that you try to use different Subversion clients against the same checkout directory, especially if those are running on different platforms (ie. across a network). Subversion does platform-specific things with line endings on text files, and if you check out on Windows and then check in the same working copy with Linux (for example), you may accidentally touch every line of every file by adding spurious CRLF line endings.

如果您正在进行跨平台开发,请在您进行开发的每个平台上设置不同的 checkout 目录.如果您必须在签入前共享更改,请考虑使用 Git 和 git-svn 网关.

If you are doing cross-platform development, set up a different checkout directory on each platform where you're doing development. If you must share changes before checking in, consider using Git and the git-svn gateway.

这篇关于svn 客户端/服务器版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆