summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.c
AgeCommit message (Collapse)Author
2013-04-17remove time_t cast not needed; ok guentherTheo de Raadt
2013-01-18Document $OpenBSD$ and teach ci's -k option to parse it tooPhilip Guenther
ok deraadt@
2011-07-14str is an optional argument to -t; if no argument is given, thisIgor Sobrado
option is ignored (for compatibility reasons). ok jmc@
2011-04-20Remove some unneeded includes and dead code, from Michael W Bombardieri.Nicholas Marriott
ok jasper xsa
2010-09-08Set rcs_suffixes to default value on initialization.Tobias Stoeckmann
ok ray zinovik
2010-07-30Check date_parse return values.Ray Lai
OK xsa
2010-07-28Make BUFs autoextend by default. This was already done in OpenCVSRay Lai
a while ago. OK zinovik nicm
2010-07-23Plug mem leak.Ray Lai
OK nicm
2010-07-23Reduce variable/function name and whitespace differences betweenRay Lai
cvs/rcs. OK xsa zinovik
2010-07-22Fix the "no changes" detection when a file has RCS keywords.Todd C. Miller
This is consistent with GNU RCS. Also g/c an unused variable. OK xsa@ nicm@
2009-02-25Checking if a file is ASCII should only be done when diffing, becauseRay Lai
the non-ASCII characters could be printed to the screen. For checking in files, checking out files, merging files, and removing revisions of files, we do so regardless of whether the files are ASCII or binary. Fixes PR6031. OK joris and deraadt.
2008-03-22Fix the freeing of two uninitialized strings. OK niallo@Todd C. Miller
2007-09-06strictly check rcsnum_cmp() return against -1.Niall O'Higgins
fixes a bug in ci -r from Pierre Riteau <pierre.riteau at free.fr> via ray@
2007-07-03Rename rcs_diffreg() to diffreg().Ray Lai
OK joris@
2007-06-30Sync revisions and time buffers size to be consistent with each others.Xavier Santolaria
Simplifies further size tweaks if needed. OK ray@.
2007-06-26allow ci -N<tag name> even when no changes. mimics GNU behaviour.Niall O'Higgins
based on a diff from Tero Koskinen <tero.koskinen at iki.fi> ok joris@
2007-06-12Allow checkin without locking (after rcs -U). Matches GNU's behaviour.Xavier Santolaria
Problem reported by itojun@. Tests itojun@; OK niallo@.
2007-04-26replace tabs by spaces in the message returned by usage()Igor Sobrado
ok by jmc@, niallo@, and xsa@
2007-03-15When commiting multiple files with ci, the flags from the previousAlexander Bluhm
files affected the later ones. ok niallo@ xsa@
2007-03-03make this modern CTheo de Raadt
2007-02-27As done in OpenCVS, general includes cleanup sweep. OK otto@.Xavier Santolaria
2007-02-22If a ,suffix file is given as an arg to ci and co, strip it. AvoidsOtto Moerbeek
potential disasters. Initial diff from niallo@, ok niallo@ joris@
2007-02-14sync some manual page entries with actual usage.Niall O'Higgins
ok jmc@, xsa@ mostly From: Igor Sobrado <igor at string1.ciencias.uniovi.es>
2007-01-15When checking in multiple files, if no log message is entered forTodd C. Miller
a file, don't prompt the user to reuse the (non-existent) log message for the next. Makes ci behave like the GNU version. OK xsa@, joris@, niallo@
2006-12-23Spelling.Kenneth R Westerback
'preceeding' -> 'preceding' 'preceeds' -> 'precedes' 'preceeded' -> 'preceded'
2006-11-18- update commentNiall O'Higgins
2006-11-09Simplify stripping of write bits from file mode.Todd C. Miller
Add support for reusing the checkin message for multiple files, ala GNU Fix the message when you abort a checkout and the file was not writable. OK joris@ niallo@
2006-09-27Add and correct comments, spacing.Ray Lai
OK niallo@.
2006-09-21Add support to rcsdiff for all the other diff flags thatTodd C. Miller
are pertinent to files (not directories) and that do not conflict with rcsdiff-specific flags. OK xsa@
2006-08-23use the correct variable in error and warning messagesJoris Vink
2006-08-16Improve rcs_buf_load() by setting errno appropriately on failure andRay Lai
never print errors or quit on error. Fix usages of rcs_buf_load() and rcs_set_description. Also plug an fd leak. OK xsa@
2006-08-02strlcpy/strlcat overload made deraadt@ sick; change to xasprintf.Ray Lai
OK niallo@
2006-08-02Fix a lot of buffer overflows and make the code more binary safe.Ray Lai
Also reduce a lot of redundant for() loops. OK niallo@
2006-07-27unused variableTheo de Raadt
2006-07-08Remove file mode argument from {cvs|rcs}_buf_write_stmp(). WeRay Lai
always set the temporary file to mode 600, which is already done by mkstemp(). OK joris@ and xsa@ over a month ago.
2006-06-03- correctly handle binary files; say bye bye to using c strings for deltatexts.Niall O'Higgins
"slap it in" joris@
2006-06-02various spelling fixesDavid Krause
2006-06-02- at end of checkin_main loop, reset pb.newrev. fixes a problem with checkinNiall O'Higgins
of multiple files. reported by fgsch@ ok joris@
2006-05-29Plug more memory leaks.Ray Lai
OK joris@
2006-05-29- zap unrequired casts for rcs_buf_release().Niall O'Higgins
2006-05-27Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),Ray Lai
handling exceptions oddly. OK joris@
2006-05-17fix printf'sXavier Santolaria
2006-05-11fix informative msg's wrt to -q and stderr. now matches gnu/usr.bin/rcs.Xavier Santolaria
2006-05-10Remove (size_t) casts on integer constants.Ray Lai
We should not cover up lint's shortcomings, especially if they no longer exist. ``This is definately good.'' niallo@.
2006-05-09Remove /* NOTREACHED */ comments, now that lint is smart aboutRay Lai
__dead. I never should have put them there. OK xsa@.
2006-05-08check for rcs_diffreg() return value; OK ray@.Xavier Santolaria
2006-05-05o GNU ci returns 0 when a file is reverted (co -l file; ci file).Ray Lai
o Don't unlock file after revert. o Fix spelling. Passes extra tests in GNU rcstest. OK niallo@.
2006-05-04finish work wrt TMPDIR; use xasprintf() to simplify code while in there;Xavier Santolaria
"looks fine" ray@.
2006-04-29o Simplify ci by using strchr and strcspn instead of custom loops.Ray Lai
o Search for the ending `$' until the end of the line instead of the end of the string. OK niallo@ and xsa@, possibly joris@.
2006-04-29Check return values for all strlcpy, and strlcat calls.Ray Lai
OK xsa@ and probably others.