如何检查软件是否与存储库是最新的?

I am having difficulties understanding this incomplete documentation for PECL SVN, so I am hoping someone with experience can tell me what to do. Basically I want to

in other words if revision 69 was committed to the repository and the servers version of the application is 42 I want PHP to notify the admin that the library is not up to date

Thanks!

In plan SVN:

To get the current version of the remote repository you can use

svn log -r HEAD

And to get the version of the local working copy you can use

svn info

svn_log seems to be available in the documentation at least, but I can not find a wrapper for svn info. You may try to see if there is an svn_info method in PECL even though it is not in the documentation (if you suspect that the documentation is incomplete).