Access, set, or delete a persistent variable
Counters provide long-term variable storage for scripts that access Perforce. For example, the Perforce review daemon uses a counter review that stores the number of the last processed changelist.
When used in the form p4 counter countername, the value of variable countername is returned. When p4 counter countername value is used, the value of variable countername is set to value.
The Perforce server uses three counters in the course of its regular operations: change, job, and journal. Do not change the value of any of these counters; if you do, you will corrupt the server.
-d countername | Delete variable countername from the Perforce server. |
g_opts | See global options section. |
Can File Arg Use Revision Specifier? |
Can File Arg Use Revision Range? |
Minimal Access Level Required |
---|---|---|
<NA> | <NA> | review |
To list all counters and their values | p4 counters |
List and track changelists | p4 review |
List users who have subscribed to particular files | p4 reviews |