Cvs Put Files In Attic
Try a command like.
Cvs put files in attic. Then grab the contents of the revision and add it back in. If you remove a file y from folder x file y is put in attic folder of x. These files are marked dead but they are not in the attic. It should not matter from a user point of view whether a file is in the attic.
Instead the file gets put in the attic literally. I don t know how these files got into this state unless someone manually moved them out of the attic. Cvs keeps track of this and looks in the attic when it needs to. Then the cvs get this file back from this hidden folder.
So good so intelligent. When you want to merge your work into the trunk you ll need to add those new files on the trunk after which the v file will be moved out of the attic. Cvs update p r rev file txt file txt cvs add file txt cvs commit. But because y is not cleared there is still y in hidden attic the folder x is still shown with a cvs entry also when it.
The simplest method i ve found so far is to run cvs status file txt to find out the revision number. There is no easy way to perform these tasks for files in the attic directory using cvs tag but cvs rtag provides the a option which applies d and f to tags in removed files i e in the attic from the appropriate module or directory. Here s the relevant section from attic foo jpg v. Type d name attic exec ls 1 you can also list the files with the cvs log command.
When you cvs rm a file it gets marked dead and moved into the attic. But in case you want to know the rule is that the rcs file is stored in the attic if and only if the head revision on the trunk has state dead. Remove the v at the end of the file to get the file. Review request 555 created sept.
If a file is added on a branch it doesn t exist on the trunk so the v file goes in the attic. Actually the merge from branch to trunk will automatically add the. Cvs doesn t merely move the rcs file into attic however. Search for missing cvs files in the attic.
17 2008 and discarded. It also commits a new revision into the file with a special revision state of dead. Log r both of these will list the names of the rcs files used to store the file. If you have access to the repository you can find all files in the attic with find.
This means that you shouldn t use directories named attic in your projects.