cvs and empty directories
I have found cvs creating many directories that I know were removed from
the source tree. I now use the -P option to cvs update/checkout to
prevent this from happening.
-P Prune (remove) directories that are empty after
being updated, on checkout, or update. Normally,
an empty directory (one that is void of revision-
controlled files) is left alone. Specifying -P
will cause these directories to be silently removed
from your checked-out sources. This does not
remove the directory from the repository, only from
your checked out copy. Note that this option is
implied by the -r or -D options of checkout and
export.
--
Bruce Momjian | 830 Blythe Avenue
maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
On Mon, 20 Jul 1998, Bruce Momjian wrote:
I have found cvs creating many directories that I know were removed from
the source tree. I now use the -P option to cvs update/checkout to
prevent this from happening.-P Prune (remove) directories that are empty after
being updated, on checkout, or update. Normally,
an empty directory (one that is void of revision-
controlled files) is left alone. Specifying -P
will cause these directories to be silently removed
from your checked-out sources. This does not
remove the directory from the repository, only from
your checked out copy. Note that this option is
implied by the -r or -D options of checkout and
export.
The general recommendation that I've received concerning this is
to run:
cvs -q update -APd
-q puts it in a quiet mode, so only changes are reported
-A removes any sticky tags to give you CURRENT sources
-P Prunes (as above)
-d creates any new directories required
Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org
The Hermit Hacker <scrappy@hub.org> writes:
The general recommendation that I've received concerning this is
to run:
cvs -q update -APd
-q puts it in a quiet mode, so only changes are reported
-A removes any sticky tags to give you CURRENT sources
-P Prunes (as above)
-d creates any new directories required
Unless you have a fast connection to hub.org, another good switch is
"-z3" to enable use of gzip compression on the cvs server connection.
(Marc presumably doesn't need this, but I sure do.)
-z is a "generic" switch that applies to all cvs ops not just update,
so it goes on the left side of the update keyword:
cvs -q -z3 update -APd
BTW, you can use a ~/.cvsrc file to set default switches and not
have to remember to supply them. I use
cvs -z3
update -d -P
so I can just type "cvs update". Any other cvs command that I issue
will also automatically get -z3, which makes cvs a lot more usable
over a modem link.
regards, tom lane
Import Notes
Reply to msg id not found: YourmessageofMon20Jul1998212238-0300Pine.BSF.3.96.980720212058.13063B-100000@thelab.hub.org | Resolved by subject fallback