summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.c
AgeCommit message (Collapse)Author
2008-06-21add a hash table mechanism based upon hcreate(3) but one that allowsJoris Vink
us to maintain multiple hash tables concurrently. immediatly start using it to keep track of what directories we have already created and what CVS dirs we already created so we do not recreate them when we do not need to. we will be switching more internals to use this soon. rejoice for cheaper lookups. ok tobias@
2008-06-17unused varsJoris Vink
2008-06-14don't always re-open the same CVS/Entries file, instead keep theJoris Vink
last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously. while doing this, switch the way we write revisions to disk by using fwrite(3) so stuff can get written to disk in chunks instead of writing everything line by line, another win. with help from otto@ ok tobias@
2008-06-10make opencvs behave exactly like GNU cvs does when it comes toJoris Vink
verbosity, it's verbose by default and you can shut it up using -Q. ok tobias@
2008-05-30Set up cmdp before first possible call of fatal to avoid NULL pointerTobias Stoeckmann
dereference in logging code. Spotted by Igor Zinovik. ok joris
2008-05-28Don't limit ourselfs when it comes to arguments on command line orTobias Stoeckmann
arguments sent by client. ok joris
2008-03-08Set umask (and cvs_umask) to system's umask in local and client mode.Tobias Stoeckmann
Also zap umask(0);umask(mask); calls, we have cvs_umask for this. ok joris
2008-02-26spacingJoris Vink
2008-02-02initial CVSROOT/modules support, only does aliases at the moment (-a).Joris Vink
"modules.c, hurray!" xsa@, ok tobias@
2008-01-28Zapped some variables which made the source harder to read (and to verify).Tobias Stoeckmann
> Diff from Igor Zinovik
2008-01-10Simply the use of cmdp and cvs_command by zapping cvs_command and workingTobias Stoeckmann
solely with cmdp. This remedies some reliability issues with invalid commands supplied and also fixes a GNU cvs style incompatibility with release command. > Based on patch from Igor Zinovik
2007-10-07break after exit() is uselessCharles Longeau
ok ray@
2007-09-19Allow lines which do not specify any arguments for command (or cvs).Tobias Stoeckmann
Sticks at GNU cvs behaviour. OK joris@
2007-09-19parse global arguments (cvs) and command arguments only once, i.e. firstTobias Stoeckmann
line of occurence. Nice side-effect: only parse arguments for current command, not for all. OK joris@
2007-09-19Print warning about invalid command in .cvsrc only if -V is in use.Tobias Stoeckmann
OpenCVS defaults to -q, so man page should say "with -V", not "without -q or -Q". OK joris@
2007-09-19Next to ' ', '\t' is valid between command and arguments.Tobias Stoeckmann
OK joris@
2007-09-19Weird, but our goal is compatibility: treat '\t' in front of keyword as '#'.Tobias Stoeckmann
OK joris@
2007-09-19Usage of fgetln() instead of fgets() in .cvsrc parsing handles lineTobias Stoeckmann
numbers better and allows longer command arguments. OK joris@
2007-09-10Fixed segmentation fault that occured during .cvsrc parsing if an invalidTobias Stoeckmann
cvs command has been specified. Spotted by Mathias De Belder <mathias at woei dot be> who also supplied a patch, although I took his second suggestion. OK joris@
2007-09-07Do not fatal if getpwuid() fails, instead ignore user configuration files.Tobias Stoeckmann
OK joris@
2007-09-02Stick at GNU cvs behaviour with Root directive handling: it does not needTobias Stoeckmann
to be sent first, can occure multiple times (although this is ignored) but should be supplied before Directory. OK joris@
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-05-27Add bounds check for cvs command arguments. Initial diff by TobiasRay Lai
Stoeckmann, rearranged to "if (num_items >= BUFSIZ)" format for readability. I would have liked to allow our cvs client to accept as many arguments as the system would allow, but the argument parsing code is surprising hairy. OK niallo@.
2007-05-27Revert, we dealt with the -x flag in the past. jmc suddenlyRay Lai
remembered we had created a separate section for compatibility flags. Oh well, two free commits. OK jmc@
2007-05-27Mention -x flag (for compatibility only). From Tobias Stoeckmann.Ray Lai
Input and OK jmc@
2007-05-27Call fatal() if extra arguments are given to "opencvs server". FromRay Lai
Tobias Stoeckmann. OK niallo@
2007-05-26cvs_server_path is more appropriate to check than cvs_server_active.Ray Lai
From Tobias Stoeckmann. OK niallo@
2007-05-22Note that the global -x option is kept for compatibility (for now) and hasXavier Santolaria
no effect.
2007-05-09- we do not have -H, zap it.Xavier Santolaria
- add missing `x' flag in getopt() and sort flags. - sync usage(). Based on initial diff from Tobias Stoeckmann.
2007-04-30make usage() __dead; from Tobias Stoeckmann.Xavier Santolaria
2007-04-30missing header; from Tobias Stoeckmann.Xavier Santolaria
2007-04-24changes "Usage" to "usage"; sorts options list in cvs history;Igor Sobrado
the argument to -z is tz, not timezone; argument names to flags should use lowercase letters; cvs's usage() output should fit on a 80-column display ok by jmc@, niallo@ and xsa@
2007-02-24fix comment; from jared r r spiegelOtto Moerbeek
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-02-17cvs_path_cat() removal since we can now easily handle thatXavier Santolaria
functionality w/ xsnprintf(); Initial diff started by thib@. OK thib@ joris@.
2007-02-09strtol(3) -> strtonum(3)Joris Vink
2007-02-06sort options;Jason McIntyre
2007-01-11in a remote setup:Joris Vink
do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
2006-12-11global option -n implies -lXavier Santolaria
2006-12-11Permit checkout from a read-only repository using the -R global optionXavier Santolaria
or using the CVSREADONLYFS environment variable. Request/test/ok todd@. Man page bits courtesy of jmc@.
2006-11-28snprintf() -> cvs_path_cat()Xavier Santolaria
2006-11-14Add support for the "Set" request.Xavier Santolaria
2006-11-14Simplify in cvs_read_rcfile() by using cvs_path_cat();Xavier Santolaria
2006-07-09handle SIGPIPE correctly.Joris Vink
2006-07-07first part of opencvs remote, fairly useable on existing treesJoris Vink
although i advise against using it on real development trees for now. only a few commands work right so far: - commit - diff - status - log - update (partially working) if you feel like testing remote and run into bugs feel free to contact me, and please include a full trace (-t).
2006-06-28use quiet mode (-q) by default and add a flag -V for the old "verbose"Reyk Floeter
mode. if you really need to know all the details (the old GNU'ish behaviour), use -V or even -t for tracing. ok joris@
2006-06-13be more accurate in describing what happenedJoris Vink
when we cannot see the repository the user wants to work with.
2006-06-12bring back a working version of the `cvs init' command. OK joris@.Xavier Santolaria
2006-06-02various spelling fixesDavid Krause
2006-05-30nuke cvs_repo_base variableJoris Vink