Current Subversion revision command

后端 未结 10 2120
日久生厌
日久生厌 2021-01-31 13:05

Is there a Subversion command to show the current revision number?

After svn checkout I want to start a script and need the revision number in a variable.

10条回答
  •  遥遥无期
    2021-01-31 13:41

    svn info, I believe, is what you want.

    If you just wanted the revision, maybe you could do something like:

    svn info | grep "Revision:"
    

提交回复
热议问题