user2022185
user2022185

Reputation: 127

Revert file in Perforce P4V from a different computer

I have a couple files checked out in Perforce on a different computer that I won't have access to until tomorrow. I received a request to revert them but I'm not sure how to do that from my home computer. I don't see an option and I can't find any results about this for the visual client. Is it even possible?

Upvotes: 1

Views: 3047

Answers (2)

Xavier T.
Xavier T.

Reputation: 42218

p4 revert takes as an option the client name, i.e workspace name.

From P4V>File> Open Command window here and try :

p4 revert -C *yourotherworkspace* -c changelist //...

If this is not enough you might have to add some global options settings like :

p4 -H remote_computer_name revert -C *yourotherworkspace* -c changelist //...

Upvotes: 2

user2022185
user2022185

Reputation: 127

I ended up finding a suitable solution for myself.

I opened P4V and navigated to my workspaces. I edited the one with the checked out files and changed the workspace root and host to be from my current computer. After applying that, I was able to revert them as I normally would from the P4V client.

Upvotes: 2

Related Questions