summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/co.c
AgeCommit message (Expand)Author
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
2007-02-21make sure checkout_rev() sets correct file permissions via file->rf_modeNiall O'Higgins
2007-02-18keep correct permissions on the RCS file when locking/unlocking the fileXavier Santolaria
2007-02-01When checking to see if a checked-out copy of the file is the sameTodd C. Miller
2006-11-10Unlike GNU rcs, our co will not overwrite an existing file, evenTodd C. Miller
2006-11-09Simplify stripping of write bits from file mode.Todd C. Miller
2006-10-12- convert some warnx() to warn(), which fixes a few stupidly un-informative e...Niall O'Higgins
2006-08-07More strlcpy/strlcat -> snprintf/xasprintf cleanup.Ray Lai
2006-08-01Reduce rcs_buf_release() usage, improving binary support.Ray Lai
2006-06-03- correctly handle binary files; say bye bye to using c strings for deltatexts.Niall O'Higgins
2006-05-28Remove a lot of xstrdup() calls in getopt() loops, which are usuallyRay Lai
2006-05-27Rename RCSFILE.fd to RCSFILE.rf_fd, plus minor spacing nits. NoRay Lai
2006-05-27Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),Ray Lai
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-09Remove /* NOTREACHED */ comments, now that lint is smart aboutRay Lai
2006-05-05o GNU ci returns 0 when a file is reverted (co -l file; ci file).Ray Lai
2006-04-29Check return values for all strlcpy, and strlcat calls.Ray Lai
2006-04-26prevent file races by obtaining an fd for the RCS file andJoris Vink
2006-04-26fork our code we shared between openrcs/cvs into the openrcs dir.Joris Vink
2006-04-25fatal() -> err()/errx() as we try to not depend on heavy cvs_log().Xavier Santolaria
2006-04-24be consistent in error messages for wrongly specified keyword substitutionXavier Santolaria
2006-04-21move shared functions into rcsutil.[ch]; this makes rcsprog.c cleaner;Xavier Santolaria
2006-04-21remove overkill cvs_log() and rather use warn()/warnx().Xavier Santolaria
2006-04-21switch -p handling to bitwise flags; OK ray@.Xavier Santolaria
2006-04-19switch -q handling to bitwise flags; OK ray@ niallo@.Xavier Santolaria
2006-04-15Plug some memory leaks; ok niallo@Patrick Latifi
2006-04-14excessive addition to brackets is a mental disease. you will goTheo de Raadt
2006-04-13correctly handle RCS files without any revisions;Joris Vink
2006-04-13*** empty log message ***Ray Lai
2006-04-12spacesTheo de Raadt
2006-04-12Clean up <rev> handling. Whenever a revision is specified after aRay Lai
2006-04-10change rcs_kwexp_set() return type to void and simplify its use. OK niallo@.Xavier Santolaria
2006-04-09- don't print out warnings about locking when they are actually wrong andNiall O'Higgins
2006-04-06-z can take no argument.Xavier Santolaria
2006-03-30first part of supporting branches in openrcs. right now we can onlyJoris Vink
2006-03-29More closely matches GNU behavior, passes more GNU rcstest tests.Ray Lai
2006-03-27- properly implement GNU file modes. basically, checkout will inheritNiall O'Higgins
2006-03-24Allow the -x flag to be used without an extension.Ray Lai
2006-03-17- co usage() says we support -I, so set the flags and revision.Niall O'Higgins
2006-03-16- checkout_rev() can fail, in which case we want a non-zero exit code.Niall O'Higgins
2006-03-16error message fix; respect -q too. Ok ray@.Xavier Santolaria
2006-03-16Follow exit() with /* NOTREACHED*/ for lint.Ray Lai
2006-03-16Currently co(1) overwrites files that the current user doesn't haveRay Lai
2006-03-15- use shared cvs_yesno() for yesno prompt, fixing an issue spotted byNiall O'Higgins
2006-03-07-z support for RCS;Joris Vink
2006-03-06missing informative message after call to checkout_rev().Xavier Santolaria
2006-03-06should also have removed those newlines in previous commit.Xavier Santolaria
2006-03-06missing newline in checkout_rev(); spotted by joris@.Xavier Santolaria