Change 32375

charles_macgregor (Charles MacGregor)
Charles MacGregor committed this change into //guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin under Review 32358
View Review
Download .zip
Adding support for p4verify to only verify submitted files and specs submitted after a given datetime.
(or a number of days/weeks/months ago)

Two new options have been added, '-since' and '-last'
'-since' accepts a date/datetime in the form YYYY/MM/DD:HH:MM:SS which will be used as the start day for the range being verified.
'-last' accepts a human readable description of the rage, i.e. '2 weeks' this will suffixed with 'ago' and passed to `date -d` to interpret into a datetime.

If either option is supplied to p4verify.sh the p4 verify command is run against a revision range starting at the datetime provided and ending at the current time e.g.
'@2025/12/01:09:00:00,@now' if "2025/12/01:09:00:00" was passed as -since.
or
'@2025/12/05:12:00:00,@now' if it was run at 12:00:00 on 2025/01/05 with -last "1 month"

#review
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
p4verify.sh#76
Loading...
Tip: Use n and p to cycle through the changes.