Reputation:
I wanted to change the path of mapping in perforce client
For ex:
//depot/a/... /home/user/xyz/...
to
//depot/a/... /home/user/p4/xyz/...
After changing the path using p4 client
, I have deleted folder xyz
using rm -rf
.
Then ran p4 sync
but I think some files are not getting synced to new path p4/xyz/
.
Upvotes: 0
Views: 8902
Reputation: 3657
Same problem here and none of the solution worked. It turns out that file I was trying to sync was p4 opened
. Once I reverted that back using p4 revert
it synced back.
Upvotes: 1
Reputation:
Below solution works for me.
p4 sync -f //depot/a/...
What I did is,synced the whole base directory,directory which contains all my files and folders.
-f
is necessary because it will actually copy, which doesn't happen in normal sync
situation(try doing ls
on file for confirmation).
In case of a single file rm -rf
situation you can do
p4 sync -f path/to/file
Upvotes: 0
Reputation: 20571
The server thinks that the workspace/client already has the #head revision of these files and does not need to sync them again.
You can try using -f
option to force a refresh however that is taking a hammer to problem that just needs a pair of pliers.
I would try a p4 sync -k //depot/a/...#none
to update the server 'have' list. Type [p4 help sync][1]
for more information about the command.
Upvotes: 2
Reputation: 2510
Try using the force (-f) flag. See documentation.
There should also be a checkbox in the GUI, if you're using the visual client.
Upvotes: 1