Aaron Jackson wrote:
Ok, if there is a directory in a project that had three files in it and they were all removed to the attic with cvs rm at different times and you want to recover all three files (say 3 could be 100+ files in some cases) but they all have different versions on them. How could you check the version just before the version that was marked as dead and moved to the attic? I did manage to recover something that had been tagged, but in this case many of the files would not be tagged in a version.

If there are many files, then I think you'll have to write a script to do this:
- create a dummy file with the correct name
- issue a 'cvs add' and captures the output of the add command, e.g.:

cvs add: Re-adding file `test.txt' (in place of dead revision 1.3).

- parse the above message to find the dead revision number
- subtract 1 to get the last good revision number
- issue the command
cvs update -p -r[rev number] filename>filename

--
Jim




_______________________________________________
Info-cvs mailing list
Info-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/info-cvs

Reply via email to