【问题标题】:svn: listing the revs of files in a directorysvn:列出目录中文件的转速
【发布时间】:2012-03-31 02:36:06
【问题描述】:

假设我有这个目录:

foo.c            // last changed rev = 4800
bar.c            // last changed rev = 4074
baz.c            // last changed rev = 4122

有没有什么简单的方法可以使用svn命令行工具来获取下面的列表或者类似的东西?

4800 foo.c
4074 bar.c
4122 baz.c

我知道我可以通过运行svn log -l 1 foo.c 并解析结果来做到这一点,但如果有很多文件,那就很痛苦了。 (Websvn 在其显示中列出了此信息,但我不确定在源代码中的何处查找。)


嗯。 svn status --verbose 适用于工作副本,但不适用于检查存储库 URL。

【问题讨论】:

    标签: svn revision-history


    【解决方案1】:

    啊哈,我自己找到的:

    svn ls --verbose http://myserver/myrepo/mydir
    

    【讨论】:

      【解决方案2】:
      svn help ls
      ...
      usage: list [TARGET[@REV]...]
      ...
      With --verbose, the following fields will be shown for each item:
      
          Revision number of the last commit
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-12-09
        • 2011-04-14
        • 1970-01-01
        • 2023-03-03
        • 1970-01-01
        • 1970-01-01
        • 2021-09-23
        相关资源
        最近更新 更多