如何找出 Subversion 存储库版本?
如何确定存储库的当前版本以查看是否需要升级它(svnadmin 升级)?
实际上,我正在与第 3 方托管 SVN,我想知道是否需要要求他们升级我的存储库。
我问,既然 1.5 服务器将保留 repo 版本为 1.4,除非我错过了什么?
How can I determine current version of my repository to see if I need to upgrade it (svnadmin upgrade)?
In reality I'm hosting SVN with 3rd party and I want to find out if I need to ask them to upgrade my repos or not.
I'm asking since 1.5 server will keep repo version at 1.4, unless I miss something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
查看
/db/format
。 升级到 1.5 格式后,我的format
文件显示:之前是:
Have a look at
<REPO>/db/format
. After upgrading to 1.5 format, myformat
file shows:Before it used to be:
将
http
或https
链接指向您的存储库并剪切并删除它。 将其粘贴到浏览器中。 默认情况下,Subversion存储库服务器 版本显示在页脚中。人们会假设
1.4
服务器不会针对1.5
存储库运行。有关详细信息,请参阅 Subversion 1.5 发行说明
感谢 @Omus 的更正。
Take the
http
orhttps
link to your repository and cut & paste it into a browser. The Subversionrepositoryserver version appears in the footer by default.One would assume that a
1.4
server won't be running against a1.5
repository.For details, see the Subversion 1.5 Release Notes
Thanks to @Omus for the correction.
您可以检查“db”目录下的“format”文件的内容。 如果显示 3,则已升级到 1.5(这是更新后的文件系统的版本)。 如果它是 2,则它是 1.4 或更早版本。
You can check the content of the file "format" under the "db" directory. If it shows 3 then it has been upgraded to 1.5 (that's the version of the updated fielsystem). If it is 2 then it is 1.4 or older.
Subversion 存储库版本/架构 (1) 和 Subversion 存储库 FSFS 版本 (2) 之间存在差异。
与 Berkeley DB 或正在开发的 FSX 相比,FSFS 是一种后端数据存储方法。 FSFS 是“a直接使用本机操作系统文件系统的版本化文件系统实现”。
(1): Subversion 存储库版本/架构可在 [REPO]/format 文件中找到。 Subversion repos_upgrade_HOWTO 文档的当前版本是:
(2 ):但是,存储库 FSFS 格式可以在 [REPO]/db/format 文件中找到。 当前版本位于 libsvn_fs_fs FSFS Structure 文档中,在文件系统格式部分。 它们目前是:
另外,从 Subversion 1.9 开始,您现在可以使用 svnadmin info 命令来获取 Subversion 存储库版本/架构,以及 Subversion 存储库 FSFS 版本(请参阅:Subversion 1.9 发行说明 - FSFS 改进以及Subversion 1.9 发行说明 - svnadmin 更改和改进)
There is a difference between Subversion Repository Version / Schema (1), and Subversion Repository FSFS Version (2).
FSFS, in contrast to Berkeley DB, or the developmental FSX, is a backend data storage method. FSFS is "a versioned filesystem implementation that uses the native OS filesystem directly".
(1): The Subversion repository version / schema is found in the [REPO]/format file. The current versions from the Subversion repos_upgrade_HOWTO document are:
(2): The repository FSFS format however, is found in the [REPO]/db/format file. The current versions are in the libsvn_fs_fs FSFS Structure document, in the Filesystem formats section. They currently are:
Also, as of Subversion 1.9 you can now use the svnadmin info command to gain both the Subversion Repository Version / Schema, as well as the Subversion Repository FSFS Version (See: Subversion 1.9 Release Notes - FSFS Improvements as well as Subversion 1.9 Release Notes - svnadmin Changes and Improvements)
对于VisualSVN Server,即使它使用自定义页面,您仍然可以查看页面源代码:)
For VisualSVN Server, even it uses custom pages, you can still view the page source:)
我还建议欺骗响应标头,因为某些服务器安装(VisualSVN Server 浮现在脑海中)使用自定义页面不幸的是,它没有显示 Subversion 服务器版本。
您可以使用 Fiddler2 来欺骗对服务器的请求/响应。 如果您使用 HTTPS 连接,请务必选中“解密 HTTPS 流量”选项:
工具->Fiddler 选项->HTTPS
I would also suggest spoofing response headers because some server installations (VisualSVN Server comes to mind) uses custom pages which unfortunately doesn't show Subversion server version.
You could use Fiddler2 to spoof request/response to the server. If You're using an HTTPS connection be sure to check "Decrypt HTTPS traffic" option in:
Tools->Fiddler Options->HTTPS
如果您使用 VisualSVN Server,您可以通过 VisualSVN Server Manager 控制台或 PowerShell 找到存储库的格式。 请阅读文章KB135:了解 Subversion 存储库类型和格式,了解更多信息。
VisualSVN 服务器管理器
请按照以下步骤查找存储库的格式:
PowerShell
请按照以下步骤通过 PowerShell 查找存储库的格式:
获取 SvnRepository MyRepo | 格式列表
If you use VisualSVN Server you can find out the format of the repository via the VisualSVN Server Manager console or via PowerShell. Read the article KB135: Understanding the Subversion repository types and formats for more information.
VisualSVN Server Manager
Follow these steps to find out the format of a repository:
PowerShell
Follow these steps to find out the format of a repository via PowerShell:
Get-SvnRepository MyRepo | Format-List
我认为你想要的是“svnlook youngest”
I think what you want is "svnlook youngest"