我正在尝试获取包含以下信息的目录中所有文件的所有修订的列表:
- 版本号
- 变更列表编号
- 开发者 ID。
我尝试使用 P4 文件:p4 files -a .> output.txt,但此命令没有选项可以为我提供开发人员的 ID 和变更列表编号。
最佳答案
尽管我要求澄清,但据我了解您的问题,我认为您想使用 p4 filelog
:
p4 -c <client-name> filelog ... > output.txt
这将产生如下行:
//path/to/depot/file
... #15 change 384363 edit on 2011/04/06 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e792948295c989868a82a784ca92948295c989868a82ca848b8e828993" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #14 change 381364 edit on 2011/03/21 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f287819780dc9c939f97b291df87819780dc9c939f97df919e9b979c86" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #13 change 375094 edit on 2011/02/16 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a2f293f2874343b373f1a39772f293f2874343b373f773936333f342e" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #12 change 374246 edit on 2011/02/11 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b9cccadccb97d7d8d4dcf9da94cccadccb97d7d8d4dc94dad5d0dcd7cd" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #11 change 374042 edit on 2011/02/11 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="731b161d011a185d041a000733105e1b161d011a185d041a00075e101f1a161d07" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment
... #10 change 373886 edit on 2011/02/10 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b4dcd1dac6dddf9ac3ddc7c0f4d799dcd1dac6dddf9ac3ddc7c099d7d8ddd1dac0" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #9 change 373567 edit on 2011/02/09 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="315c50491f43584545544371521c5c50491f4358454554431c505d5d" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #8 change 373553 edit on 2011/02/09 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="35404650471b5b545850755618404650471b5b5458501856595c505b41" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #7 change 373350 edit on 2011/02/09 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cbbeb8aeb9e5a5aaa6ae8ba8e6beb8aeb9e5a5aaa6aee6a8a7a2aea5bf" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #6 change 370568 edit on 2011/01/25 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="10656375623e7e717d7550733d656375623e7e717d753d737c79757e64" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #5 change 368223 edit on 2011/01/14 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="44313721366a2a252921042769313721366a2a2529216927282d212a30" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #4 change 365805 edit on 2010/12/21 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="85f0f6e0f7abebe4e8e0c5e6a8f0f6e0f7abebe4e8e0a8e6e9ece0ebf1" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #3 change 364494 edit on 2010/12/14 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cea6aba0bca7a5e0b9a7bdba8eade3a6aba0bca7a5e0b9a7bdbae3ada2a7aba0ba" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #2 change 362107 edit on 2010/12/02 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="becbcddbcc90d0dfd3dbfedd93cbcddbcc90d0dfd3db93ddd2d7dbd0ca" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
... #1 change 359972 add on 2010/11/23 by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ff8a8c9a8dd1919e929abf9cd28a8c9a8dd1919e929ad29c93969a918b" rel="noreferrer noopener nofollow">[email protected]</a> (text) 'comment'
对于每个文件。如果您只需要最新的更改,请使用
`p4 -c <client-name> filelog -m 1 ... > output.txt
关于perforce - 如何列出目录中的所有文件修订、更改列表编号和开发人员 ID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5581655/