summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/status.c
AgeCommit message (Collapse)Author
2009-03-21use file_rcsrev when printing out Repository revision soJoris Vink
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.
2009-02-21use FILE_ON_DISK flags when we need to verify if a fileJoris Vink
exists in the working copy or not instead of checking fd being -1 since this can differ in server or local mode.
2009-02-21alter cvs_file_get() so it takes flags instead of one setJoris Vink
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.
2009-01-14fix printing status on removed files by default;Joris Vink
slighty different diff applied then what the bug author provided us. thanks & closes pr 6038
2008-06-14Conforming to RCS specification, it is possible but unlikely to encounterTobias Stoeckmann
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
2008-06-11Avoid possible NULL pointer dereferences by using reentrant versionsTobias Stoeckmann
of time functions. ok joris
2008-06-08check for file_rcs being NULLJoris Vink
2008-06-08there are more cases where we cannot show the tags when -v is specified.Joris Vink
noticed by tobias@
2008-06-08do not segfault when running status -v on non existing files.Joris Vink
original patch from Igor Zinovik but fixed in another way.
2008-02-13fix a crash that could happen when running status on unknown files.Joris Vink
from Tero Koskinen.
2008-02-10+ #define CVS_DATE_FMT "%Y.%m.%d.%H.%M.%S"Xavier Santolaria
...and use it.
2008-02-10Add support for Sticky Date. OK joris@ tobias@.Xavier Santolaria
2008-01-31Replaced the unused cvs_command variable cmd_req with cmd_flags, which statesTobias Stoeckmann
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@
2008-01-28Properly handle -R -- although it is default, it may be overwritten mit -lTobias Stoeckmann
in front of it. OK joris@, xsa@ > Diff from Igor Zinovik
2008-01-10RCS files without head keyword mustn't segfault our implementation. OnlyTobias Stoeckmann
command that supports such files is "cvs status", therefore properly handle them in all other commands, too.
2007-09-22better branching/sticky tag support, no branch commits yet though.Joris Vink
2007-07-03On the server side, in a remote setup, do not display timestamp.Xavier Santolaria
OK joris@.
2007-06-28Sync revisions and time buffers size to be consistent with each others.Xavier Santolaria
Simplifies further size tweaks if needed. OK niallo@ ray@.
2007-06-01add support for local and remote branch checkout. for example,Niall O'Higgins
cvs co -rOPENBSD_3_0 works now. along the way, simplify and rationalise code and fix a few nits. ok joris@ xsa@ ray@
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-02-09remove the cvs_file_classify() `loud' argument, it was usedJoris Vink
in the old school days and serves no purpose what so ever now. otto@ mentioned this to me a while ago
2007-01-31snprintf() -> xsnprintf()Xavier Santolaria
2007-01-12do not leak memory from rcs_head_get()Joris Vink
ok niallo@
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-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-07-07fix segfault for newly added files.Joris Vink
found while test driving the new remote code.
2006-06-19kill local and remote callback and just have one called fileproc.Joris Vink
we let the commands pass the correct function. all in preparation for remote.
2006-06-16in preparation for the new remote code, proto.h becomes obsolete.Joris Vink
2006-06-07bring back -v support; OK joris@.Xavier Santolaria
2006-06-04fix output if file is lost, unknown, or in the Attic; OK joris@.Xavier Santolaria
2006-06-01major rewrite of some rcs parsing stuff:Joris Vink
- 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.
2006-05-30fill in the correct revision number we will want in file_rcsrevJoris Vink
for each cvs_file struct, this will help us with sticky tags, commiting to branches and importing into existing repositories.
2006-05-30handle -q for Sticky Options and Sticky Tags output; OK joris@.Xavier Santolaria
2006-05-28allow commands to shut up the output from cvs_file_classifyJoris Vink
if the commands want to output certain stuff themselfs
2006-05-27allow commands to respect the -l flag, if the -l flag isJoris Vink
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.
2006-05-27commit the new opencvs code, i have been hacking onJoris Vink
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.
2006-04-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
2006-04-12yet another missing break;Xavier Santolaria
2006-01-30strerror() -> rcs_errstr() when passing rcs_errno as argument;Xavier Santolaria
2006-01-27more errors handling cleanup;Xavier Santolaria
2006-01-25snprintf() cleanup; OK niallo@.Xavier Santolaria
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-30major cleanup of the functions handling the remote cvs protocol.Joris Vink
makes the code a lot more readable and understandable. ok xsa@ and niallo@
2005-12-22cvs_rcs_getpath() cannot fail anymore;Xavier Santolaria
2005-09-22style;Xavier Santolaria
2005-09-05add warning message if file status is unknown;Xavier Santolaria
2005-08-17only close the RCS file if we opened it.Joris Vink
fixes a crash with newly added files. ok jfb@
2005-08-17trailing whitespaces ...Xavier Santolaria
2005-08-08zap unused vars;Xavier Santolaria
2005-07-27use LP_NOTICE instead of LP_INFO where appropriate;Xavier Santolaria