summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
2008-07-08missed in last commit, to make things compile cleanerJoris Vink
2008-07-08make these compile cleanlyJoris Vink
2008-07-08use cf->fd in cvs_remote_sendfile() instead of using a localJoris Vink
variable that is only used once, which is in this case.
2008-06-28if the user supplied -A only checkout files again if a sticky tagJoris Vink
was in fact set, instead of ALWAYS checking them out no matter what. spotted & diff tested by naddy@
2008-06-27Simply the version string and nuke unecessary variables used to build it.Xavier Santolaria
ok joris
2008-06-27Bump version; we're not going to stay with 1.0 forever.Xavier Santolaria
ok joris
2008-06-26plug a memleak in rcs_rev_getlines() - initially noticed & diff byJoris Vink
Igor Zinovik - but fixed in a better way by myself. ok tobias@
2008-06-23Some conformance fixes:Anders Magnusson
- Empty brackets forbidden in C99. - ? : and skipping middle argument is both disallowed and considered bad programming habit. OK ray@, xsa@.
2008-06-21add a hash table mechanism based upon hcreate(3) but one that allowsJoris Vink
us to maintain multiple hash tables concurrently. immediatly start using it to keep track of what directories we have already created and what CVS dirs we already created so we do not recreate them when we do not need to. we will be switching more internals to use this soon. rejoice for cheaper lookups. ok tobias@
2008-06-20Don't parse CVS/Root during import.Tobias Stoeckmann
ok joris
2008-06-20admin is only allowed on files which have an entry in CVS/Entries.Tobias Stoeckmann
ok joris
2008-06-20Properly send -D arguments to server when run as a client. Issue spottedTobias Stoeckmann
by sthen. ok joris
2008-06-20If -N has been specified along -D for diff, treat invalid dates as ↵Tobias Stoeckmann
non-existent file. Spotted by sthen. ok joris
2008-06-19If checkout/update -p is requested with a specific tag for a file whichTobias Stoeckmann
doesn't contain this tag, don't print head. ok joris
2008-06-19Add entries to history file only if it already exists.Tobias Stoeckmann
ok joris
2008-06-17Plug memory and file descriptor leaks, diff by Jonathan Armani.Tobias Stoeckmann
ok joris
2008-06-17Regular expressions to match repository are allowed to have % in front.Tobias Stoeckmann
Diff by Jonathan Armani.
2008-06-17unused varsJoris Vink
2008-06-17unbreak diff for newly added files, tsk.Joris Vink
2008-06-15if we are using RCS_PARSE_FULLY we can close the RCS file descriptorJoris Vink
as soon as we are done parsing, since we no longer need it for anything.
2008-06-15Support the addition of new files in branches.Tobias Stoeckmann
ok joris
2008-06-15open the RCS file descriptor with O_RDONLY, like all other code does.Joris Vink
ok tobias@
2008-06-14unfuck CVS/Tag creation, karma sucks doesn't it.Joris Vink
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-14Added support for sticky date set in CVS/Tag and CVS/Entries per directory.Tobias Stoeckmann
ok joris
2008-06-14don't always re-open the same CVS/Entries file, instead keep theJoris Vink
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@
2008-06-14Run cvs_remove_force only if -f has been specified.Tobias Stoeckmann
ok joris
2008-06-14No need to add \n at the end of format string for a fatal call.Tobias Stoeckmann
2008-06-14Don't trick user into believing that it's actually possible to add a fileTobias Stoeckmann
to repository which is even ready to be checked out. "probably right" joris
2008-06-14Fixed wrong function name in fatal call.Tobias Stoeckmann
2008-06-13pass the complete path to cvs_file_get_cf() instead of reconstructingJoris Vink
it again in that function.
2008-06-12we should be able to handle symbol names that are also RCS tokens,Joris Vink
gnu cvs supports this and we should too really. allows opencvs to properly checkout netbsd trees. spotted & tested by rivo nurges ok tobias@
2008-06-12Fixed a memory leak in export noticed by joris.Tobias Stoeckmann
ok joris
2008-06-12properly deal with CVS_USE_WDIR.Joris Vink
ok tobias@
2008-06-12cmdp can be NULL while still in cvs_getopt(), so deal with thisJoris Vink
inside of cvs_vlog() since cvs_getopt() might be calling it. spotted by Jonathan Armani
2008-06-12You successfully cast 'remove dead cruft'Joris Vink
2008-06-12fix logicJoris Vink
2008-06-12completely kill the need for TMP_DIR when running checkout,Joris Vink
which gives us better performance among other things. this is however disabled in a few cases: 1) whenever you run checkout over an existing tree (which acts as update) 2) whenever you specify -d or a module alias we're planning on enabling this behaviour for case 2 in the future. anoncvs sysadmins now love us even more. ok tobias@
2008-06-12show any signal we might have received that killed our cvs process.Joris Vink
ok tobias@
2008-06-11always enter cvs_update_leavedir()Joris Vink
2008-06-11do not count on files that are uptodate to be on disk in a remote setup.Joris Vink
2008-06-11cleanup our junk when in server mode and running as checkout everyJoris Vink
time we descend into another directory, leaves even less crap in /tmp while running.
2008-06-11Removed bogus var definition.Tobias Stoeckmann
ok joris
2008-06-11Avoid possible NULL pointer dereferences by using reentrant versionsTobias Stoeckmann
of time functions. ok joris
2008-06-11spacingJoris Vink
2008-06-11style ferry comes aroundJoris Vink
2008-06-11ofd is being closed in cvs_file_free(), no need to close it ourselfsJoris Vink
2008-06-11GNU cvs "compresses" CVSROOT/history by shrinking entry for working dirTobias Stoeckmann
and repositry by replacing home directory with ~ and adding things like "*4" at the end of working directory if the last part of a path is the same for working directory and repository. ok joris
2008-06-10make opencvs behave exactly like GNU cvs does when it comes toJoris Vink
verbosity, it's verbose by default and you can shut it up using -Q. ok tobias@
2008-06-10properly inherit file permissions.Joris Vink
reported & tested by phessler@ input otto@ deraadt@ ok tobias@