How to revert check-in, keeping changes locally?
Posted 03 December 2019 - 08:00 AM
how would I achieve the following:
Start situation: Checked-out file with latest revision + local changes.
Wanted: "Revert" (i.e. don't have the file checked out), but keeping the local changes (locally only, obviously)
Same situation as if the file had never been checked out, but offline changes had been made.
Posted 04 December 2019 - 04:10 AM
p4 revert -k FILE
If you want this functionality to be easily accessible via P4V (although if it's a frequent part of your workflow there's probably a better way of accomplishing it) you can add it as a custom tool that invokes the command line client.
Posted 04 December 2019 - 08:37 AM
Thank you, that is interesting. How exactly would I add this as a tool, i.e. what is the correct way of setting it up in
[...image as attachment...]
As an aside: Can I set up a custom tool that opens me p4 console window like that as well?
Posted 04 December 2019 - 03:53 PM
For a "revert -k" custom tool you'd make the "application" p4 and make the "arguments" revert -k %F.
If there are certain files that you want to freely modify in your workspace but not check in, the better solution is usually to exclude them from your workspace's View (or add them to the "ignored" section of your stream if you're using streams).
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users