summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
2008-09-17try getlogin() to get the real username when comitting files as root.Reyk Floeter
this gives better information in log messages when the user logged in with a different uid and used sudo or su to become root. matches the behaviour of gcvs except that we don't fallback to LOGNAME or USER since getlogin() should not lie. ok tobias@
2008-09-12Move the revision selection in front of output, so errors won't mix upTobias Stoeckmann
with output. Matches GNU cvs.
2008-09-12Plugged two memory leaks which could be encountered while using -r argumentTobias Stoeckmann
with various CVS commands. "seems to make sense" xsa@
2008-09-12Be also very conservative about the supplied revision for state changes,Tobias Stoeckmann
i.e. don't successfully parse "admin -s dead:1.1:1.1". Changed global var logrev into function-specific all-purpose rev, too. No objections xsa@
2008-09-12Be very conservative about state changes with "admin -s". With GNU CVSTobias Stoeckmann
and current OpenCVS code it's possible to change a state in a way that cannot be fixed with another admin call. No objections xsa@
2008-08-29Pre-commit checks (CVSROOT/commitinfo) are run before log message isTobias Stoeckmann
requested. Do this for GNU cvs compatibility, too. ok joris
2008-08-29Support for variable expansion in trigger files added.Tobias Stoeckmann
ok joris
2008-08-29If parsing of a command in one of the trigger files fails, treat this as anTobias Stoeckmann
error instead of ignoring it. ok joris
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.