Joe Bain Posted February 6, 2020 Report Share Posted February 6, 2020 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 More sharing options...
calbzam Posted February 6, 2020 Report Share Posted February 6, 2020 Hi, In order to revive the files, you can delete the changeset where you removed them or even better, you can use the subtractive merge operation: https://www.plasticscm.com/documentation/advanced-version-control-guide#subtractive-merge Regards, Carlos. Link to comment Share on other sites More sharing options...
Joe Bain Posted February 6, 2020 Author Report Share Posted February 6, 2020 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? Link to comment Share on other sites More sharing options...
calbzam Posted February 7, 2020 Report Share Posted February 7, 2020 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. 1 Link to comment Share on other sites More sharing options...
Joe Bain Posted February 7, 2020 Author Report Share Posted February 7, 2020 Ah, that looks perfect! Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now