Get revision number of a remote repository

后端 未结 5 1195
半阙折子戏
半阙折子戏 2021-02-14 20:26

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 re

5条回答
  •  悲哀的现实
    2021-02-14 20:59

    On new version of svn (1.9) you can do:

    svn info --show-item revision svn://...
    18436 
    

    This should return only the revision number.

    All the grep version will break if your locale is not english.

    For previous version, you can try

    svn info --xml | grep '
                                                            
提交回复
热议问题