summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
2009-02-23unused varJoris Vink
2009-02-23we no longer push out Set-sticky to the client when writingJoris Vink
our Tag file on the server or in cvs_mkpath(), this caused problems for the "fast checkout" mechanism when a tag was supplied. instead, write out any directory sticky tag when we are checking out a file in that directory, this way we can use our "fast checkout" mechanism (no /tmp required) even for -r and -d without breaking working copies because they were missing CVS/Tag files. "looks good" tobias@
2009-02-23Properly convert between gmt and localtime for unchanged files as client.Tobias Stoeckmann
Problem reported by Jesus Sanchez (zexel08 at gmail dot com). ok joris
2009-02-21Properly convert dates between timezones before comparison.Tobias Stoeckmann
ok joris
2009-02-21fix grammarJoris Vink
from <dawedawe@gmx.de>
2009-02-21use FILE_ON_DISK flags when we need to verify if a fileJoris Vink
exists in the working copy or not instead of checking fd being -1 since this can differ in server or local mode.
2009-02-21bump to match release versionJoris Vink
2009-02-21use file_flags for 2 more reasons:Joris Vink
- mark a file as being inside the Attic/ - mark a file as existing in the working copy (both in local and remote mode) this way we no longer will need to check if cf->fd == -1 and think about wether or not we are in local or remote mode.
2009-02-21in cvs_mkpath() always look for an existing CVS/Repository fileJoris Vink
unless we're running checkout or export. otherwise we'll end up accidently overwriting it in certain cases on the client side of things.
2009-02-21correct Set-sticky and Clear-sticky responses toJoris Vink
include the right repository path. we messed up some cvs implementations by doing this incorrectly.
2009-02-21cleanup of CVSROOT, we have no need for cr_flags,Joris Vink
cr_version or cr_vrmask[] its all very old stuff. remove all macros using cr_vrmask as well, no use for them.
2009-02-21alter cvs_file_get() so it takes flags instead of one setJoris Vink
value for user_supplied. allow us to carry any important file flags over to cvs_file's later on. makes it easier for what i have coming.
2009-02-18fix off by one character when constructing $Mdocdate$.Joris Vink
problem found by todd@, ok sthen@
2009-02-15add our temporary RCS file to our temp_files worklist in caseJoris Vink
for some reason we get interrupted before calling rename(). we hate leaving behind temporary files.
2009-02-13be more sane in handling the given repository pathJoris Vink
in cvs_client_updated().
2009-01-28enable -d for the export command.Pierre-Yves Ritschard
ok joris@
2009-01-14fix printing status on removed files by default;Joris Vink
slighty different diff applied then what the bug author provided us. thanks & closes pr 6038
2009-01-02Add format attributes to functions that use variable arguments andCan Erkin Acar
make the code -Wformat=2 clean. ok joris@ xsa@
2008-11-26Small optimization.Ray Lai
OK tobias@
2008-11-09Removed unneeded conversion from RCSNUM to string in rcs_rev_setlog.Tobias Stoeckmann
oki joris@
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@