[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Minor descripancy in commands
From: |
Mark D. Baushke |
Subject: |
Re: Minor descripancy in commands |
Date: |
Tue, 22 Jan 2008 13:23:04 -0800 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David O'Brien <obrien@FreeBSD.org> writes:
> I usually cannot remember the help syntax for CVS (cvs -H foo), and end
> up doing 'cvs foo -h'.
Okay.
> This works OK for most CVS commands, but one notable exception is
> "import". Why is "import" handled differently?
All of the operations which happen outside of a checked-out CVS tree
will have the same error when no CVSROOT is specified:
cvs history
cvs import
cvs init
cvs rdiff
cvs rlog
cvs rtag
cvs version
When main.c::main() runs, it processes its arguments and next checks to
see if the environment looks okay (has a CVSROOT) before calling the
code to process the appropriate sub-command. Because there is no
CVS/Root or CVSROOT set already in your example, the code fails before
the sub-command is even called. Look in src/main.c to see how
CVSroot_parsed is set and what happens when it is not set.
So, if you have a CVSROOT environment variable pointing at something
reasonable, then a 'cvs import -h' will probably do what you expect.
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
iD8DBQFHll64Cg7APGsDnFERAtPCAKC6j7UbyOB1asmsoK6TLh99euBoqwCgo4OZ
Pl9BfEc8Nwf/eOCGdF7yJM4=
=tNg/
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Minor descripancy in commands,
Mark D. Baushke <=