1

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?

user2022185
  • 117
  • 11
  • Unless you have the files locked, why would anyone care? And note that reverting files from another machine will probably leave your client in a weird state (the file presumably would still have whatever changes you made but would no longer be open for edit). – jamesdlin Dec 01 '15 at 20:27
  • @jamesdlin - Good question! I have no idea why anyone would care to be honest. But this is for a class I'm in and it was the teacher who requested it, so I didn't question it. Maybe he just wants to ensure no one will accidentally merge/update over the changes he was going to make? – user2022185 Dec 02 '15 at 04:06

2 Answers2

1

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 //...
Xavier T.
  • 40,509
  • 10
  • 68
  • 97
1

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.

user2022185
  • 117
  • 11