How do you determine the latest SVN revision number rooted in a directory?

前端 未结 10 1677
北恋
北恋 2020-12-02 15:45

I would like to start tagging my deployed binaries with the latest SVN revision number.

However, because SVN is file-based and not directory/project-based, I need to

10条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 16:16

    One way. When you check out the code, look at the last line of svn output:

    $ svn up
    ...stuff...
    Updated to revision 66593.
    

    A more direct way:

    $ svn info
    Path: .
    URL: https://svn.example.com/svn/myproject/trunk
    Repository Root: https://svn.example.com/svn/
    Repository UUID: d2a7a951-c712-0410-832a-9abccabd3052
    Revision: 66593
    Node Kind: directory
    Schedule: normal
    Last Changed Author: bnguyen
    Last Changed Rev: 66591
    Last Changed Date: 2008-09-11 18:25:27 +1000 (Thu, 11 Sep 2008)
    

提交回复
热议问题