kakyo
kakyo

Reputation: 11640

Files added from "p4 add" not showing up in p4v default changelist

I have a P4CONFIG file that sets up necessary environment. Then I p4 add /path/to/myfile.ext, which gives me

//Depot/relative/path/to/myfile.ext - currently opened for add

But when opening my p4v of the same workspace, the file isn't in the default changelist. I've also tried

p4 add -f /path/to/...

And the result is the same.

What am I missing?

Upvotes: 0

Views: 1310

Answers (1)

Samwise
Samwise

Reputation: 71517

What am I missing?

There are a couple of possibilities. The two commands to run to figure it out would be:

p4 info
p4 opened

The things you'd be trying to figure out with those commands are:

  1. What workspace am I actually using at the command line? Since you don't include this output in your question, it's possible that your P4CONFIG file isn't actually set up correctly (maybe it's getting overridden, maybe there's a typo in it, etc) and you have the file open in a different workspace from the one that you're using in P4V.
  2. Which changelist is this file already open in? You said that you're looking for the file in the default changelist, but it could be currently open in a different pending changelist in the same workspace.

Upvotes: 3

Related Questions