Jump to content

Revive deleted file


Joe Bain

Recommended Posts

I've accidentally deleted some files from my repository and I'm trying to revive them from the history. I've found the changeset that introduced the files but I can't find an option to bring them back. If I click "Browse repository in this changeset" it just shows the current version of the repo. Sorry if this is a stupid question but I've been looking through the docs and google and I can't figure it out!

Thanks!

Link to comment
Share on other sites

If you are using the console, you should be able to run the following Plastic commamnd:

cm undelete --help
Undeletes an item using a specific revision.

Usage:

    cm undelete revspec path

    revspec             Specification of the revision whose contents will
                        be loaded in the workspace.
    path                Restore path.

Remarks:

    The item to undelete should not be already loaded in the workspace.

    The undelete operation is not supported for xlinks.

Example:

    cm undelete revid:756 C:\mywks\src\foo.c
    cm undelete itemid:68#cs:2 C:\mywks\dir\myfile.pdf
    cm undelete serverpath:/src#br:/main C:\mywks\Dir

Regards,

Carlos.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...