如何列出所有文件修订、更改列表编号和目录中的开发人员 ID? [英] How do I list all files revisions, changelist number & developer's ID within a directory?

查看:39
本文介绍了如何列出所有文件修订、更改列表编号和目录中的开发人员 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用此信息获取目录中所有文件的所有修订列表:

I am trying to get a list of all revisions on all files within a directory with this information:

  • 版本号
  • 更改列表编号
  • 开发者的 ID.

我尝试使用 P4 文件:p4 files -a . > output.txt,但是这个命令没有选项可以给我开发者的 id &更改列表编号.

I tried using P4 files: p4 files -a . > output.txt, but this command has no options to give me the developer's id & changelist number.

推荐答案

尽管我要求澄清,但我理解你的问题,我认为你想使用 p4 filelog:

My request for clarification notwithstanding, as I understand your question I think you want to use p4 filelog:

p4 -c <client-name> filelog ... > output.txt

这将产生如下行:

//path/to/depot/file
... #15 change 384363 edit on 2011/04/06 by user.name@c-user.name-client (text) 'comment'
... #14 change 381364 edit on 2011/03/21 by user.name@c-user.name-client (text) 'comment'
... #13 change 375094 edit on 2011/02/16 by user.name@c-user.name-client (text) 'comment'
... #12 change 374246 edit on 2011/02/11 by user.name@c-user.name-client (text) 'comment'
... #11 change 374042 edit on 2011/02/11 by henrik.wist@c-henrik.wist-client (text) 'comment
... #10 change 373886 edit on 2011/02/10 by henrik.wist@c-henrik.wist-client (text) 'comment'
... #9 change 373567 edit on 2011/02/09 by max.ritter@c-max.ritter-all (text) 'comment'
... #8 change 373553 edit on 2011/02/09 by user.name@c-user.name-client (text) 'comment'
... #7 change 373350 edit on 2011/02/09 by user.name@c-user.name-client (text) 'comment'
... #6 change 370568 edit on 2011/01/25 by user.name@c-user.name-client (text) 'comment'
... #5 change 368223 edit on 2011/01/14 by user.name@c-user.name-client (text) 'comment'
... #4 change 365805 edit on 2010/12/21 by user.name@c-user.name-client (text) 'comment'
... #3 change 364494 edit on 2010/12/14 by henrik.wist@c-henrik.wist-client (text) 'comment'
... #2 change 362107 edit on 2010/12/02 by user.name@c-user.name-client (text) 'comment'
... #1 change 359972 add on 2010/11/23 by user.name@c-user.name-client (text) 'comment'

对于每个文件.如果您只需要最新的更改,请使用

for each file. If you only need the latest change, use

`p4 -c <client-name> filelog -m 1 ... > output.txt

这篇关于如何列出所有文件修订、更改列表编号和目录中的开发人员 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆