Jump to content
Joe Bain

Revive deleted file

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!

Share this post


Link to post
Share on other sites

Thanks, I'll see if I can find the change that deleted these files. In git I would do `git checkout [revision] -- [files]` but I take it there's nothing like that in Plastic?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...