summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/status.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Increase buffer size to support large pathnames. Committing onmillert2010-04-191-2/+3
| | | | behalf of stsp@ who is travelling. OK miod@ deraadt@ xsa@ jsg@
* use file_rcsrev when printing out Repository revision sojoris2009-03-211-3/+2
| | | | | | we always receive the correct revision number instead of HEAD, otherwise running status on a file that belongs to a branch results in showing HEAD revision instead of latest branch revision.
* use FILE_ON_DISK flags when we need to verify if a filejoris2009-02-211-3/+4
| | | | | exists in the working copy or not instead of checking fd being -1 since this can differ in server or local mode.
* alter cvs_file_get() so it takes flags instead of one setjoris2009-02-211-2/+2
| | | | | | | value for user_supplied. allow us to carry any important file flags over to cvs_file's later on. makes it easier for what i have coming.
* fix printing status on removed files by default;joris2009-01-141-1/+5
| | | | | | slighty different diff applied then what the bug author provided us. thanks & closes pr 6038
* Conforming to RCS specification, it is possible but unlikely to encountertobias2008-06-141-13/+15
| | | | | | | | an RCS file which has no head revision set. Some commands actually can work with them (log, status) so support these files. Fixes A LOT of possible segmentation faults. ok joris
* Avoid possible NULL pointer dereferences by using reentrant versionstobias2008-06-111-4/+5
| | | | | | of time functions. ok joris
* check for file_rcs being NULLjoris2008-06-081-3/+2
|
* there are more cases where we cannot show the tags when -v is specified.joris2008-06-081-2/+3
| | | | noticed by tobias@
* do not segfault when running status -v on non existing files.joris2008-06-081-2/+2
| | | | original patch from Igor Zinovik but fixed in another way.
* fix a crash that could happen when running status on unknown files.joris2008-02-131-5/+8
| | | | from Tero Koskinen.
* + #define CVS_DATE_FMT "%Y.%m.%d.%H.%M.%S"xsa2008-02-101-2/+2
| | | | ...and use it.
* Add support for Sticky Date. OK joris@ tobias@.xsa2008-02-101-2/+14
|
* Replaced the unused cvs_command variable cmd_req with cmd_flags, which statestobias2008-01-311-2/+2
| | | | | | | | | | | if the current command is supposed to use a working directory or if it is a repository-only command (as of now checkout -p, rtag, rlog). Makes the code simpler, easier to read and automagically fixes some issues we encountered with these commands (for example if a working directory exists, or "." operations are performed). OK joris@, niallo@
* Properly handle -R -- although it is default, it may be overwritten mit -ltobias2008-01-281-1/+2
| | | | | | | | in front of it. OK joris@, xsa@ > Diff from Igor Zinovik
* RCS files without head keyword mustn't segfault our implementation. Onlytobias2008-01-101-4/+9
| | | | | command that supports such files is "cvs status", therefore properly handle them in all other commands, too.
* better branching/sticky tag support, no branch commits yet though.joris2007-09-221-3/+3
|
* On the server side, in a remote setup, do not display timestamp.xsa2007-07-031-2/+6
| | | | OK joris@.
* Sync revisions and time buffers size to be consistent with each others.xsa2007-06-281-2/+2
| | | | | Simplifies further size tweaks if needed. OK niallo@ ray@.
* add support for local and remote branch checkout. for example,niallo2007-06-011-2/+2
| | | | | | | cvs co -rOPENBSD_3_0 works now. along the way, simplify and rationalise code and fix a few nits. ok joris@ xsa@ ray@
* general includes cleanup sweep. ok joris@ niallo@otto2007-02-221-3/+3
|
* remove the cvs_file_classify() `loud' argument, it was usedjoris2007-02-091-2/+2
| | | | | | in the old school days and serves no purpose what so ever now. otto@ mentioned this to me a while ago
* snprintf() -> xsnprintf()xsa2007-01-311-14/+6
|
* do not leak memory from rcs_head_get()joris2007-01-121-3/+5
| | | | ok niallo@
* in a remote setup:joris2007-01-111-1/+2
| | | | | | | do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
* first part of opencvs remote, fairly useable on existing treesjoris2006-07-071-4/+22
| | | | | | | | | | | | | | 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).
* fix segfault for newly added files.joris2006-07-071-2/+2
| | | | found while test driving the new remote code.
* kill local and remote callback and just have one called fileproc.joris2006-06-191-3/+2
| | | | | | we let the commands pass the correct function. all in preparation for remote.
* in preparation for the new remote code, proto.h becomes obsolete.joris2006-06-161-3/+2
|
* bring back -v support; OK joris@.xsa2006-06-071-2/+25
|
* fix output if file is lost, unknown, or in the Attic; OK joris@.xsa2006-06-041-2/+12
|
* major rewrite of some rcs parsing stuff:joris2006-06-011-2/+3
| | | | | | | | | | | | | | - rework rcs_getrev() to correctly support branches - rework rcs_translate_tag() to correctly translate given symbols or branches into their matching revisions - rework rcs_rev_add() to correctly update its 'next' pointers and insert the new revision in the correct place on the list. - rework rcs_head_get() to return the latest revision on the default branch if it has been set or the normal HEAD revision otherwise. - no longer access the rf_head member of the RCSFILE struct manually, use the rcs_head_get() function which correctly returns the HEAD revision, there might be a default branch that has to be used. - for now, when commiting a new revision reset the default branch.
* fill in the correct revision number we will want in file_rcsrevjoris2006-05-301-2/+2
| | | | | for each cvs_file struct, this will help us with sticky tags, commiting to branches and importing into existing repositories.
* handle -q for Sticky Options and Sticky Tags output; OK joris@.xsa2006-05-301-2/+7
|
* allow commands to shut up the output from cvs_file_classifyjoris2006-05-281-2/+2
| | | | if the commands want to output certain stuff themselfs
* allow commands to respect the -l flag, if the -l flag isjoris2006-05-271-2/+6
| | | | | | | specified certain commands will not recurse into directories. at the same time introduce a method of specifying wether or not a command should look in the repository for files.
* commit the new opencvs code, i have been hacking onjoris2006-05-271-208/+107
| | | | | | | | | | | | this for the past 2 weeks now and it should go in at the start of the hackathon so others can help out. this code is a lot safer, smarter, faster and best of all it is actually doing what it is suppose to do! basic checkout, update, status, diff and commit are working in local mode only. there is no support for any remote setups now.
* remove a metric buttload of excessive ()deraadt2006-04-141-2/+2
| | | | no binary change; ok ray
* yet another missing break;xsa2006-04-121-1/+2
|
* strerror() -> rcs_errstr() when passing rcs_errno as argument;xsa2006-01-301-2/+2
|
* more errors handling cleanup;xsa2006-01-271-4/+4
|
* snprintf() cleanup; OK niallo@.xsa2006-01-251-22/+10
|
* #include's cleanup; ok joris@ niallo@.xsa2006-01-021-10/+2
|
* major cleanup of the functions handling the remote cvs protocol.joris2005-12-301-24/+12
| | | | | | makes the code a lot more readable and understandable. ok xsa@ and niallo@
* cvs_rcs_getpath() cannot fail anymore;xsa2005-12-221-4/+2
|
* style;xsa2005-09-221-3/+3
|
* add warning message if file status is unknown;xsa2005-09-051-1/+5
|
* only close the RCS file if we opened it.joris2005-08-171-2/+5
| | | | | | fixes a crash with newly added files. ok jfb@
* trailing whitespaces ...xsa2005-08-171-2/+2
|