开发者

Find Head revision svn no working copy

开发者 https://www.devze.com 2023-04-06 03:13 出处:网络
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.

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

精彩评论

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

关注公众号