开发者

Find Head revision svn no working copy

I have a repo I am trying to get the HEAD revision number through code. There is no svn controlled working copy as everything is exported.

Tried: svn info /var/svn/xyz

But it says this is not a开发者_运维知识库 working copy. All I need is the rev number. Thanks


svn info accepts a remote repository as the path to check. Why not use that? svn info

You'll get the repository info back in an easily parsable format.


Try this:

    svnlook youngest /var/svn/xyz

It works fine for me:)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜