获取远程仓库的修订号 [英] Get revision number of a remote repository

查看:28
本文介绍了获取远程仓库的修订号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本地机器上,使用svnversion 获取subversion 版本库的修订号是没有问题的.现在我想从我的在线存储库(带有 Apache2 的 WebDAV)中获取修订号.

On the local machine it is no problem to get the revision number of a subversion repository with svnversion. Now I want to get the revision number from my online repository (WebDAV with Apache2).

我试过这个:

svnversion http://nick:password@www.myhost.de/svn/test`

在浏览器中它照常工作(只是为了确保没有拼写错误等),但是 svnversion 说找不到目录.所以我想我走错了路.

In a browser it worked as usual (just to ensure there weren't typos or so), but svnversion said that the directory cannot be found. So I presume I was on the wrong track.

如何获得修订号?

推荐答案

svnversion 仅用于工作副本,但查询存储库的一种方法是使用 svn info 如下:

svnversion is just for working copies, but one way to query your repository would be to use svn info as follows:

svn info http://nick:password@www.myhost.de/svn | grep Revision

这篇关于获取远程仓库的修订号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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