简体   繁体   中英

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:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM