summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
2008-01-14Changed xmalloc(n * m) pattern into xcalloc(n, m).Tobias Stoeckmann
OK ray@, xsa@ > Diff from Igor Zinovik.
2008-01-13Revision buffers are supposed to be of size CVS_REV_BUFSZ (32) insteadTobias Stoeckmann
of 24. OK xsa@ > Diff from Igor Zinovik.
2008-01-13Typos fixed.Tobias Stoeckmann
OK xsa@ > Diff from Igor Zinovik.
2008-01-12Added missing break statements.Tobias Stoeckmann
OK xsa@ > Diff from Igor Zinovik <zinovik at cs dot karelia dot ru>
2008-01-10Synced rlog's usage checks and with rtag. Also unbreaks rtag and rlog withTobias Stoeckmann
GNU cvs on server-side.
2008-01-10various fixes for remote commands (right now we support rlog and rtag)Tobias Stoeckmann
2008-01-10Added support for rtag in local and remote setups (with interoperabilityTobias Stoeckmann
with GNU cvs). Basically we already had rtag in place as tag is supposed to work with revisions in working directory, but our implementation was wrong. Fixed that on the fly as well.
2008-01-10just for the record: I HATE LogTobias Stoeckmann
2008-01-10Damnit, I should avoid this nasty Log word in a comment ...Tobias Stoeckmann
2008-01-10Make cvs_file_classify more readable.Tobias Stoeckmann
"Be especially careful with this one" joris@
2008-01-10xmalloc + memset -> xcallocTobias Stoeckmann
2008-01-10another strcspn() roundTobias Stoeckmann
2008-01-10rcs_getrev is gone: zap prototype, too.Tobias Stoeckmann
2008-01-10Simply the use of cmdp and cvs_command by zapping cvs_command and workingTobias Stoeckmann
solely with cmdp. This remedies some reliability issues with invalid commands supplied and also fixes a GNU cvs style incompatibility with release command. > Based on patch from Igor Zinovik
2008-01-10cvs_mkpath missed to add all "yet to be added" directories into CVS/Entries,Tobias Stoeckmann
thus making further access to these subdirectories rather difficult.
2008-01-10Got cvs_server_rlog back into shape.Tobias Stoeckmann
2008-01-10Don't ignore files and directories due to patterns on repository-side,Tobias Stoeckmann
these patterns should only be applied on working directories. This finally enables a fully working "cvs checkout src" (but don't expect all checkout options to work, too).
2008-01-10An empty -k option is invalidTobias Stoeckmann
2008-01-10Our keyword expansion had a big flaw, due to this construction:Tobias Stoeckmann
if (!(mode & RCS_KWEXP_NONE)) RCS_KWEXP_NONE is defined to 0, so expansion happened always. Left shifted all RCS_KWEXP defines and looked carefully at hard-coded values throughout the code.
2008-01-10Properly free entryTobias Stoeckmann
> Patch from Igor Zinovik
2008-01-10Ignore CVS directories during import in remote setups. assert()ed GNUTobias Stoeckmann
cvs server and was unwanted behaviour anyway.
2008-01-10Handle the addition of directories right, especially in remote setups withTobias Stoeckmann
GNU cvs as a server.
2008-01-10Properly handle "cvs add" on a client/server setup with GNU cvs as a client.Tobias Stoeckmann
2008-01-10Slap in -b support for tag command. It was missing for a full regress testTobias Stoeckmann
as of now.
2008-01-10RCS files without head keyword mustn't segfault our implementation. OnlyTobias Stoeckmann
command that supports such files is "cvs status", therefore properly handle them in all other commands, too.
2008-01-10Added support for keyword $Log$. In order to support $Log$, new lines haveTobias Stoeckmann
to be added which mustn't be expanded again (this log message for example would loop forever due to $Log$ keywords in it).
2008-01-06Branches are separated with \n\t in GNU rcs/cvs.Tobias Stoeckmann
This makes regress tests easier to check with OpenCVS and GNU cvs. OK xsa@
2007-12-09Fix for an off-by-one.Tobias Stoeckmann
OK fgsch@
2007-11-17Convert file_rcsrev earlier into a string, else revbuf can be printedTobias Stoeckmann
without initialisation.
2007-11-11Max. 80 chars per line in rcs_kwexp_line. Saved a tab by redoingTobias Stoeckmann
for (...) { if (something) { ... } } into for (...) { if (!something) continue; ... } All other lines which were still too long have been splitted up. No functional change (beside of if-statement).
2007-11-11Do not (re)expand CVS keywords if it is requested to keep old keywords.Tobias Stoeckmann
2007-11-11CVS/Entries needs at least one line specifying a 'D'irectory. If theTobias Stoeckmann
current directory has subdirectories, there is no need to apply another 'D' line. Sticks at GNU cvs behaviour.
2007-11-11Added CVS keyword "Locker". Although it is a dummy function, it's alreadyTobias Stoeckmann
enough for OpenBSD's src/.
2007-11-11If a file has modifications in it (i.e. cvs update on modified files),Tobias Stoeckmann
reapply umask as done with unmodified files. Sticks at GNU cvs behaviour.
2007-11-11Apply umask on RCS file modes. The umask can be changed in CVSROOT/configTobias Stoeckmann
and should therefore be handled.
2007-11-09Parse CVSROOT/config and set umask on server-side, too.Tobias Stoeckmann
2007-11-09Fix for a rather unintuitive behaviour, this way it can be reproduced:Tobias Stoeckmann
cvs checkout src/sbin/swapon cvs checkout -rHEAD src/sbin/swapon If no date or revision has been supplied, swapon.8 won't be checked out, but if a revision (even if it is HEAD) or a date (-D) has been supplied, swapon.8 will be checked out due to modifications in Attic/ after it has been removed from tree.
2007-11-09An umask is octet not decimal. This means we cannot use strtonum() toTobias Stoeckmann
parse it due to base 10. Instead strtol() with base 8 must be used.
2007-11-08Stick at GNU cvs output format of docdate.Tobias Stoeckmann
OK niallo@
2007-11-08Return latest revision of default branch when HEAD is requested and noTobias Stoeckmann
newer revisions are available (for example multiple imports). Reported by ckuethe@, OK niallo@
2007-10-18Avoid memory leak if tag is defined multiple times in CVSROOT/config.Tobias Stoeckmann
OK ray@, xsa@
2007-10-09Added proper support for branch revisions in annotate.Tobias Stoeckmann
OK niallo@, twice :)
2007-10-09Properly parse supplied symbols with -r argument.Tobias Stoeckmann
OK niallo@
2007-10-09Do not use working HEAD (file_rcsrev), instead use file_rcs->rf_head toTobias Stoeckmann
print revision info. OK niallo@
2007-10-09various style cleanups:Tobias Stoeckmann
- Copyright order - rev -> cvs_specified_tag - crev -> rev - line instead of alines[i] in for-loop OK niallo@
2007-10-09Do not warn user about files that are "no longer in the repository"Tobias Stoeckmann
during cvs import. OK niallo@
2007-10-09Return NULL if a revision has been supplied that is higher than HEAD.Tobias Stoeckmann
This one and previous OK niallo@, "makes sense to me" xsa@
2007-10-09Properly resolve branches, i.e. supplying branch base revision (e.g. 1.1.1)Tobias Stoeckmann
should resolve to latest branch revision (e.g. 1.1.1.1).
2007-10-09cvs import must not parse files in local CVS directory.Tobias Stoeckmann
OK niallo@
2007-10-08do not try to reset the default branch if the RCS fileJoris Vink
does not exist, fixes a segfault when commiting a new file. found by tobias@ who is going to make a nice little regression test for this.