Undo CVS rollback create

Over the past 3 days, I've created a number of java files, and let Idea add them to cvs as I went.

When I was ready to put them into CVS, I ran a CVS status which listed all the new files (which I do before commiting), and it was then that I realized that these new files are better placed in their own repository.

Since all of the files were marked as added, I selected CVS Rollback Create so that the Added files would not be marked as such for CVS. I would then have moved the files to the correct (different) location to perform an import into CVS.

The problem (and its a biggie) is that the Rollback Create command deletes all of the java files. Doh! and #$&)!#&$ this and #$&)!#&$ that!

Is there somewhere I can find them, or a cached copy from which I can recover? The undo command did nothing, saying "Files have changed", and of course the Windows Recycle bin is useless.

Prepared to be the slave of the person who knows how to recover my work...

/rick.


3 comments

Hello Rick,

Check the local history for the directory where you had the files. You do have it enabled, don't you? ;)

HTH,
Andrei

RS> Over the past 3 days, I've created a number of java files, and let
RS> Idea add them to cvs as I went.
RS>
RS> When I was ready to put them into CVS, I ran a CVS status which
RS> listed all the new files (which I do before commiting), and it was
RS> then that I realized that these new files are better placed in their
RS> own repository.
RS>
RS> Since all of the files were marked as added, I selected CVS Rollback
RS> Create so that the Added files would not be marked as such for CVS.
RS> I would then have moved the files to the correct (different)
RS> location to perform an import into CVS.
RS>
RS> The problem (and its a biggie) is that the Rollback Create command
RS> deletes all of the java files. Doh! and #$&)!#&$ this and #$&)!#&$
RS> that!
RS>
RS> Is there somewhere I can find them, or a cached copy from which I
RS> can recover? The undo command did nothing, saying "Files have
RS> changed", and of course the Windows Recycle bin is useless.
RS>
RS> Prepared to be the slave of the person who knows how to recover my
RS> work...
RS>
RS> /rick.
RS>

0

I think you stuck yourself good with that one. Saying rollback creation
means they were never created (e.g. you DELETED them). You probably
should have done a refactor-move. That would have moved the files and
triggered a CVS (delete-undo creation).

Norris Shelton
Sun Certified Java Programmer




Rick Sanderson wrote:

>Over the past 3 days, I've created a number of java files, and let Idea add them to cvs as I went.
>
>When I was ready to put them into CVS, I ran a CVS status which listed all the new files (which I do before commiting), and it was then that I realized that these new files are better placed in their own repository.
>
>Since all of the files were marked as added, I selected CVS Rollback Create so that the Added files would not be marked as such for CVS. I would then have moved the files to the correct (different) location to perform an import into CVS.
>
>The problem (and its a biggie) is that the Rollback Create command deletes all of the java files. Doh! and #$&)!#&$ this and #$&)!#&$ that!
>
>Is there somewhere I can find them, or a cached copy from which I can recover? The undo command did nothing, saying "Files have changed", and of course the Windows Recycle bin is useless.
>
>Prepared to be the slave of the person who knows how to recover my work...
>
>/rick.
>
>
>

>

0

Thanks Andrei,

Yep, thankfully the local VC was enabled, but...

Sigh! I was actually half way through manually extracting the files from Idea's version control cache folders (using grep on all those .v files to find the latest version), before I saw your post and learned that I can check revisions on an entire directory from within Idea. I can't believe I did not even try that.

So I used your suggestion to beautifully restore my work. Happy once again.

/rick.

Hello Rick,

Check the local history for the directory where you
had the files. You do have it enabled, don't you? ;)

HTH,
Andrei

0

Please sign in to leave a comment.