[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recovering from Attic

From: Jim Hyslop
Subject: Re: Recovering from Attic
Date: Wed, 08 Jun 2005 13:20:01 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]