[p4] How to get count of number of checked out files in all subfolders
P4Reg <[email protected]>
| Newsgroups | gmane.comp.version-control.perforce |
|---|---|
| Message-ID | <[email protected]> |
Posted on behalf of forum user 'P4Reg'. You could use the "p4 opened" command to get a list of opened (checkedout) files which you could pipe into a line count utility # All opened files Powershell p4 opened -a | Measure-Object -line Windows CMD shell p4 opened -a //... | find /c /v "" Unix p4 opened -a | wc -l There are a several options available to filter the output from opened, see "p4 help opened". For example: #All opened files under //depot/... p4 opened -a //depot/... # All files opened by client clientA under //depot/... p4 opened -C clientA //depot/... You could set this up as a custom tool in P4V, see https://www.perforce.com/perforce/r17.3/manuals/p4v/#P4V/advanced_options.custom.html#Configuring_custom_tools Linux p4 files -a //... | wc -l -- Please click here to see the post in its original format: http://forums.perforce.com/index.php?/topic/5580-how-to-get-count-of-number-of-checked-out-files-in-all-subfolders _______________________________________________ perforce-user mailing list - [email protected] http://maillist.perforce.com/mailman/listinfo/perforce-user