rashmins
rashmins

Reputation: 21

Perforce :Deleted file in client space : Unable to recover the file from server

I deleted a file in client work space. rm *.py. when i do a p4 sync -f , it is only refreshing the file how can i get back the file from server. Thanks, Rashmi

Upvotes: 2

Views: 2769

Answers (2)

Manish
Manish

Reputation: 11

One reason this can happen is that you had already checked out those files. For example, if you checked out the whole directory and then delete it, p4 sync woudn't work as you expect. Run p4 revert and then p4 sync -f ... should work.

Upvotes: 1

jgritty
jgritty

Reputation: 11915

p4 sync -f is the right command.

Some things to check:

Are you syncing the right client? Does the client view include the file?

Upvotes: 4

Related Questions