logo

Ever run into this error with Perforce’s ‘p4 changes’ or any other similar command?

//projectfoo/bar/… – must refer to client ‘some_p4_client’.?

I ran into this exact problem today.  I was trying to do a ‘p4 changes //projectfoo/bar/…@xxxxxx,yyyyyy’ to get a history of the changelist and got that error. The symptoms were that doing the same command on other projects within the depot worked perfectly fine as well as trying it on another platform and system.

After googling and running into a brick wall, I started to scrutinize the depot and the naming convention then bam!  I Found the solution!

Turns out that inside the depot, “projectfoo” is actually “ProjectFoo.”  Do you see the difference yet?  Now I tried ‘p4 changes //ProjectFoo/bar/…@xxxxxx,yyyyyy’ and it magically worked.

In short, Perforce is extremely case sensitive when it comes to the command operations.  Generally, its a good practice to keep everything within the depot as lower case to avoid unique problems like these.