Description. Use p4 revert to discard changes made to open files, reverting them to the revisions last synced from the depot (with p4 sync ). This command also removes the reverted files from the pending changelists with which they're associated.
The p4 status command finds unopened files in a client's workspace and detects the following three types of inconsistencies between your workspace and the depot: Files present in the depot, present in your have list, but missing from your workspace. By default, these files are then opened for delete .
To unlock those files: p4 [g-opts] unlock [-c change | -s shelvedchange | -x] [-f] [file ...] This releases locks that were created explicitly using the p4 lock command, or implicitly during the course of a submit operation.
You can use the '-f' flag from the command line to force an integration without regard to previous integration history. Use of this flag will, in essence, start your integration over. If you are using p4v, there is an option under "advanced options" in the integration dialog that performs the same operation.
I had the same problem, so I wrote this script to restore any dropbox folder to its state as of a given date:
https://github.com/clark800/dropbox-restore
You have several options:
If you've recently done something that has modified a large bunch of files in your Dropbox and you want to revert all those changes, you can contact the support staff at Dropbox to have the modifications rolled back. See https://www.dropbox.com/help/400/en for details. Based on discussions in the Dropbox forums, it seems like they are also willing and able to restore any given folder to an arbitrary date, as long as it is within the bounds stored by Dropbox (30 days for a basic account; for accounts with the packrat feature all the way back to when packrat was activated).
You could use the script written by clark800, linked to in a separate answer to this question. I haven't used it so cannot vouch for it, but many seem very happy with it!
If you are on a Mac (OS X 10.7 or later), you can try out a new app called Revisions (available at https://www.revisionsapp.com) that I've been working on. The app allows you to select any folder in your Dropbox and shows you a timeline of all edits for that folder. Then, you can choose to restore or download any version of any single file, or restore or download an entire folder (including any subfolders) to its state at any desired point in time (subject to the Dropbox bounds stated above).
To my knowledge restoring to a particular revision is limited to a per file operation. It would be possible to accomplish what you are looking for using their REST API however it would require custom code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With