Get revision number of a remote repository

后端 未结 5 1172
半阙折子戏
半阙折子戏 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:48

    A handy AWK one-liner to get only the number portion:

    svn info http://nick:password@www.myhost.de/svn | awk '/Revision:/ { print $2 }'
    

提交回复
热议问题