summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/edit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.joris2017-06-011-7/+7
| | | | Instead use cvsroot_is_local() and cvsroot_is_remote().
* rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.fcambus2016-10-131-2/+2
| | | | OK millert@
* Remove xfree(), like already done for RCS. From Michael W Bombardieri,nicm2015-11-051-2/+3
| | | | ok mmcc
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-8/+8
| | | | | | | | | 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)
* when opencvs is started with trace option `-t' it must print function itzinovik2010-07-091-3/+3
| | | | | | | | enters, even if it was executed simultaneously with `-n' (no exec option). cvs_unedit_local() does not conform that behaviour, so lets make it behave like all other functions. ok xsa@, stsp@
* Some conformance fixes:ragge2008-06-231-6/+6
| | | | | | | - Empty brackets forbidden in C99. - ? : and skipping middle argument is both disallowed and considered bad programming habit. OK ray@, xsa@.
* don't always re-open the same CVS/Entries file, instead keep thejoris2008-06-141-2/+1
| | | | | | | | | | | | last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously. while doing this, switch the way we write revisions to disk by using fwrite(3) so stuff can get written to disk in chunks instead of writing everything line by line, another win. with help from otto@ ok tobias@
* Avoid possible NULL pointer dereferences by using reentrant versionstobias2008-06-111-11/+8
| | | | | | of time functions. ok joris
* spacingderaadt2008-03-011-2/+2
|
* Sticky tags must have a 'T' in front of them in CVS/Entries.tobias2008-02-061-3/+8
| | | | OK joris@
* Added -k flag support for all commands which support it.tobias2008-02-041-4/+3
| | | | OK joris@
* Replaced the unused cvs_command variable cmd_req with cmd_flags, which statestobias2008-01-311-4/+4
| | | | | | | | | | | 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/+4
| | | | | | | | in front of it. OK joris@, xsa@ > Diff from Igor Zinovik
* another strcspn() roundtobias2008-01-101-7/+4
|
* strcspn() changegilles2007-10-051-5/+2
| | | | was okay'd by pyr@ and ok by millert@
* oops i was suppose to pass cvs_directory_tag to cvs_file_classify().joris2007-09-241-2/+2
|
* better branching/sticky tag support, no branch commits yet though.joris2007-09-221-3/+3
|
* Sync time buffer size; missed in previous commit.xsa2007-07-011-3/+3
|
* Sync revisions and time buffers size to be consistent with each others.xsa2007-06-281-3/+3
| | | | | Simplifies further size tweaks if needed. OK niallo@ ray@.
* general includes cleanup sweep. ok joris@ niallo@otto2007-02-221-3/+6
|
* cvs_path_cat() removal since we can now easily handle thatxsa2007-02-171-7/+5
| | | | | functionality w/ xsnprintf(); Initial diff started by thib@. OK thib@ joris@.
* remove the cvs_file_classify() `loud' argument, it was usedjoris2007-02-091-3/+3
| | | | | | in the old school days and serves no purpose what so ever now. otto@ mentioned this to me a while ago
* use more stack allocations for fixed size buffers. ok xsa@ joris@otto2007-01-251-14/+7
|
* typo in error message.xsa2007-01-251-2/+2
|
* update the revision number in CVS/Entries from CVS/Baserev if wexsa2007-01-111-8/+36
| | | | | are reverting to the revision that the user edited in the first place. ok joris@.
* sync joris' last change (connection to remote server when all options arexsa2007-01-111-1/+2
| | | | valid) for the unedit command too.
* in a remote setup:joris2007-01-111-1/+3
| | | | | | | do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
* add a cvs_file_copy routine and use it for the edit command toxsa2007-01-101-2/+3
| | | | | copy the file in the current working directory to CVS/Base/ ok ray@ joris@.
* remove uneeded linebreak when creating the CVS/Notifyxsa2007-01-091-2/+2
| | | | file with the edit command.
* - simplify CVS/Baserev file parsing; makes unedit work better.xsa2007-01-081-30/+49
| | | | - add tracing messages in edit, unedit functions.
* add cvs_base_handle() routine to handle the CVS/Baserev* files.xsa2007-01-061-4/+88
| | | | | first bits for the edit command for now. definitly still more work to do for optimization...
* for edit: create the CVS/Base directory if it does not already exist.xsa2007-01-051-1/+5
|
* use current working directory fullpath for notifications.xsa2007-01-051-5/+11
|
* correctly handle time in notifications.xsa2007-01-051-7/+11
|
* use correct hostname for notifications.xsa2007-01-051-5/+11
| | | | | | also, in a near future, might be worth thinking about sharing some code between the edit and unedit commands, would shrink the mess a little bit...
* starting bits for the edit command. more to come.xsa2007-01-051-1/+139
|
* - introduce file comparison routine, cvs_file_cmp().xsa2007-01-051-2/+10
| | | | | | - compare the <file> in working dir and the one in CVS/Base/<file> for the unedit command. hints otto@, input and ok ray@ niallo@.
* set permissions back on the file after it got copied from thexsa2007-01-031-1/+4
| | | | CVS/Base/ directory.
* some unedit command bits; still work in progress for local mode.xsa2007-01-021-2/+111
|
* skeletons for the client-side part of the editors and watchers commands.xsa2007-01-021-0/+92
| | | | not linked to build.
* commit the new opencvs code, i have been hacking onjoris2006-05-271-186/+0
| | | | | | | | | | | | 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.
* zap more unused variables.xsa2006-03-161-13/+2
|
* #include's cleanup; ok joris@ niallo@.xsa2006-01-021-10/+2
|
* major cleanup of the functions handling the remote cvs protocol.joris2005-12-301-21/+9
| | | | | | makes the code a lot more readable and understandable. ok xsa@ and niallo@
* - editors remote handlerxsa2005-10-101-7/+61
| | | | - minor consistency tweaks
* KNF;xsa2005-07-251-4/+4
|
* zap unused variables;joris2005-07-101-3/+2
|
* add some comments ..xsa2005-05-311-1/+5
|
* headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;xsa2005-05-311-2/+2
|
* we do not use sysexits.h anymore, nuke it!xsa2005-05-281-2/+1
|