summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.c
AgeCommit message (Collapse)Author
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.
2006-04-29Clarify man pages to match -t behavior and pretty up usage strings.Ray Lai
OK xsa@ and jmc@.
2006-04-29Make ci store gmtime instead of localtime in RCS files, like GNU.Ray Lai
OK xsa@
2006-04-26prevent file races by obtaining an fd for the RCS file andJoris Vink
do our operations on that, this is safe and guarantees we can operate on the file until we close(2) it. a fix is coming for the remaining races in our diff code. okay niallo@ and ray@
2006-04-26fork our code we shared between openrcs/cvs into the openrcs dir.Joris Vink
this was starting to become inhuman to maintain without ugly ugly hacks in the shared code, and it will be easier to make specific changes for openrcs without touching the soon-to-be-replaced opencvs code.
2006-04-25quote strings consistently.Xavier Santolaria
2006-04-25fatal() -> err()/errx() as we try to not depend on heavy cvs_log().Xavier Santolaria
OK joriski.
2006-04-25style;Xavier Santolaria
2006-04-24prevent a race by keeping an fd for the workfile around untilJoris Vink
we are finished with it. first one of many to come... okay ray@
2006-04-24o Better match GNU behavior (a bare -t does NOT read from stdin,Ray Lai
unlike rcs). o Share code with rcs by moving rcs_set_description() to rcsutil.c. o Change description prompt from #define to const char *. OK xsa@
2006-04-21move shared functions into rcsutil.[ch]; this makes rcsprog.c cleaner;Xavier Santolaria
"the voices in my head say OK!" joris@.
2006-04-21remove overkill cvs_log() and rather use warn()/warnx().Xavier Santolaria
OK ray@ and discussed with joris@.
2006-04-19switch -q handling to bitwise flags; OK ray@ niallo@.Xavier Santolaria