【问题标题】:Find all files in a Accurev stream committed by a user查找用户提交的 Accurev 流中的所有文件
【发布时间】:2013-07-23 07:05:32
【问题描述】:

我需要查找用户提交的 accurev 流中的所有文件。这些文件也可能位于子目录中,因此我需要进行递归查找。我有 bean 从命令行 'accurev hist' 命令尝试,但无法得到我想要的。任何人都可以帮忙。

【问题讨论】:

    标签: accurev


    【解决方案1】:

    这可能会给你你想要的。假设流名称为“Common”,并且您正在尝试查找用户 testuser1 将哪些元素提升到流中。

    首先,生成所有元素及其路径的列表。运行 'accurev stat -fl -a -s Common > /tmp/list.out' 以获取 /tmp/list.out 中的列表。

    仅查看用户“testuser1”提升到流“Common”中的元素:

    'accurev hist -t now -k promote -s Common -u testuser1 -l /tmp/list.out > /tmp/testuser1CommonPromotes.out'

    使用 -u 开关时的输出相当繁琐,因为该命令会在处理每个元素时打印出信息,并在匹配时添加用户信息。

    【讨论】:

      【解决方案2】:

      您需要编写一个脚本来完成此操作。

      stat 和 hist 命令应该为您提供所需的所有信息。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-09-21
        • 1970-01-01
        • 1970-01-01
        • 2016-08-16
        • 1970-01-01
        相关资源
        最近更新 更多