Jump to content


revert files that are unchanged w.r.t latest on depot

revert revert

  • Please log in to reply
2 replies to this topic

#1 engr.vns

engr.vns

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 12 November 2019 - 06:00 PM

How do I revert all files that are "edited" in my client but now have the same content as the latest on the depot.

p4 revert -a does not seem to work here.

Currently, I have to diff each file w.r.t latest on depot and if not-different revert it manually.

Thanks for the reply.
VNS

#2 engr.vns

engr.vns

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 12 November 2019 - 06:11 PM

How do I revert all files that are "edited" in my client but now have the same content as the latest on the depot.

p4 revert -a does not seem to work here.

Currently, I have to diff each file w.r.t latest on depot and if not-different revert it manually.

Thanks for the reply.
VNS

#3 Matt Janulewicz

Matt Janulewicz

    Advanced Member

  • Members
  • PipPipPip
  • 224 posts
  • LocationSan Diego, CA

Posted 19 November 2019 - 11:02 PM

'p4 revert -a' seems like it should work here. Is it giving any errors as to why it's not working? Are the local files writable?

If you don't necessarily care _what_ files are actually changed and want to submit them, you could look into the worskpace's SubmitOptions and change it to 'leave unchanged'.

Though if revert -a doesn't work, not sure that would either.
-Matt Janulewicz
Currently unemployed, looking for work in Boise, ID!





Also tagged with one or more of these keywords: revert, revert

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users