|
From: | Mark E. Hamilton |
Subject: | Re: How to add/commit a directory after the files therein are already added/commited |
Date: | Wed, 19 Apr 2006 17:24:27 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050920 |
Ming, Mark E. Hamilton wrote:
Ming, Ming Kin Lai wrote:Based on the revision number, it looks to me like you initially added thedoc directory, Manual.tex, etc. to the version3 branch.The how do you explain the fact that when I now check out the project, doc is missing?% cvs -d /home/messengr/cvs checkout -r v3_0_6 myproj % cd myproj/ % ls AUTHORS CVS/ Makefile NEWS Readme compiler/ daemon/ (doc is missing)Do you have a ~/.cvsrc file that specifies 'checkout -P'? The 'Existing Tags:' for Manual.tex doesn't include the 'v3_0_6' tag, so that file isn't a part of that branch/tag. If a directory is empty, and the '-P' option is used with 'cvs checkout' the empty directory will be pruned from your working directory. Since you didn't specify the '-P' option in your command, it could be specified in the ~/.cvsrc file.
Actually, I did a quick little test and it seems that an empty sub-directory is pruned (in this case) regardless of whether -P is present. So, the reason that the doc directory is missing in your working directory is because the Manual.tex file was not tagged with the v3_0_6 tag, and so when you checked out the myproj hierarchy using that tag the doc directory was empty, and so was not checked out in your working directory.
-- ---------------- Mark E. Hamilton Orion International Technologies, Inc. Sandia National Laboratory, NM. 505-844-7666
[Prev in Thread] | Current Thread | [Next in Thread] |