[p4] Need to find most recent changelist for a given clientspec

Ivey, William william_ivey at bmc.com
Wed Nov 12 12:14:39 PST 2008

Try this form (it's subtly different from an earlier example):

p4 -c MY_CLIENT changes -m1 -s submitted //MY_CLIENT/...

Note that the -c option is in the "usage" area and not the
command option area in this one. That should have the same
effect as if you had set P4CLIENT in the environment.


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Shehadeh, Karim
Sent: Wednesday, November 12, 2008 12:35 PM

Thanks, Rick.  As you mentioned that solution doesn't use the clientspec
which I need it to do (it has to do with the way we handle autobuild).
With help from you and others I believe I came upon a solution that
seems to work:

p4 changes -m1 -s submitted //MY_CLIENT/...

The only way I could get the changes command to use an arbitrary
clientspec is to set the default on the machine to the one I planned to

Thanks again,

More information about the perforce-user mailing list