OpenBSD CVS

CVS log for src/usr.bin/cvs/cvs.h


[BACK] Up to [local] / src / usr.bin / cvs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.185 / (download) - annotate - [select for diffs], Wed Jan 27 07:18:17 2021 UTC (3 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.184: +2 -2 lines
Diff to previous 1.184 (colored)

fix -fno-common issues; ok mortimer

Revision 1.184 / (download) - annotate - [select for diffs], Thu Jun 1 08:08:24 2017 UTC (6 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.183: +3 -1 lines
Diff to previous 1.183 (colored)

Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.

Instead use cvsroot_is_local() and cvsroot_is_remote().

Revision 1.183 / (download) - annotate - [select for diffs], Sun May 28 17:11:34 2017 UTC (6 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.182: +2 -1 lines
Diff to previous 1.182 (colored)

Let opencvs show ignored files on import, not showing them is just confusing.

ok stsp@

Revision 1.182 / (download) - annotate - [select for diffs], Sat Apr 4 14:19:10 2015 UTC (9 years, 1 month ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.181: +2 -1 lines
Diff to previous 1.181 (colored)

Fix modified timestamp in output of opencvs status.
Patch by joris via tech@; reminded by tedu

Revision 1.181 / (download) - annotate - [select for diffs], Tue Sep 20 12:43:45 2011 UTC (12 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.180: +1 -2 lines
Diff to previous 1.180 (colored)

Lose unused variable cvs_msg, from Michael W Bombardieri.

Revision 1.180 / (download) - annotate - [select for diffs], Wed Apr 20 18:43:57 2011 UTC (13 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.179: +1 -3 lines
Diff to previous 1.179 (colored)

Remove some includes and defines that are no longer needed, from Michael
W Bombardieri.

Revision 1.179 / (download) - annotate - [select for diffs], Wed Sep 29 18:14:52 2010 UTC (13 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.178: +3 -1 lines
Diff to previous 1.178 (colored)

Support for update -C, from zinovik.

ok tobias xsa

Revision 1.178 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.177: +2 -2 lines
Diff to previous 1.177 (colored)

Reduce variable/function name and whitespace differences between
cvs/rcs.

OK xsa zinovik

Revision 1.177 / (download) - annotate - [select for diffs], Fri Jul 23 08:31:19 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.176: +2 -2 lines
Diff to previous 1.176 (colored)

Rename a bunch of variables and functions, removing the cvs_/rcs_
prefixes to reduce differences between cvs and rcs files.

"yes!" nicm

Revision 1.176 / (download) - annotate - [select for diffs], Wed Mar 25 21:19:20 2009 UTC (15 years, 1 month ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.175: +1 -6 lines
Diff to previous 1.175 (colored)

remove unused functions, definitions and outdated comments
from the stone ages.

Revision 1.175 / (download) - annotate - [select for diffs], Thu Mar 19 09:53:16 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.174: +2 -1 lines
Diff to previous 1.174 (colored)

properly register Questionable files using CVS/Entries server-side
in order for them to show up as "? foobar" when opencvs is in server mode.

Revision 1.174 / (download) - annotate - [select for diffs], Sat Feb 21 14:11:08 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.173: +2 -2 lines
Diff to previous 1.173 (colored)

bump to match release version

Revision 1.173 / (download) - annotate - [select for diffs], Sat Feb 21 12:52:47 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.172: +1 -11 lines
Diff to previous 1.172 (colored)

cleanup of CVSROOT, we have no need for cr_flags,
cr_version or cr_vrmask[] its all very old stuff.

remove all macros using cr_vrmask as well, no use for them.

Revision 1.172 / (download) - annotate - [select for diffs], Fri Jun 27 21:14:15 2008 UTC (15 years, 10 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.171: +2 -8 lines
Diff to previous 1.171 (colored)

Simply the version string and nuke unecessary variables used to build it.
ok joris

Revision 1.171 / (download) - annotate - [select for diffs], Fri Jun 27 21:05:46 2008 UTC (15 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.170: +2 -2 lines
Diff to previous 1.170 (colored)

Bump version; we're not going to stay with 1.0 forever.
ok joris

Revision 1.170 / (download) - annotate - [select for diffs], Tue Jun 17 11:05:39 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.169: +1 -2 lines
Diff to previous 1.169 (colored)

unused vars

Revision 1.169 / (download) - annotate - [select for diffs], Sun Jun 15 04:38:52 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.168: +4 -1 lines
Diff to previous 1.168 (colored)

Support the addition of new files in branches.

ok joris

Revision 1.168 / (download) - annotate - [select for diffs], Sat Jun 14 03:58:29 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.167: +2 -1 lines
Diff to previous 1.167 (colored)

Added support for sticky date set in CVS/Tag and CVS/Entries per directory.

ok joris

Revision 1.167 / (download) - annotate - [select for diffs], Tue Jun 10 01:00:34 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.166: +6 -4 lines
Diff to previous 1.166 (colored)

New trigger framework that allows us to run the required scripts
defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.

This enables the use of log_accum2 and all that other nice stuff we like.

This was mostly written by Jonathan Armani with help from tobias@ and myself.

ok tobias@

Revision 1.166 / (download) - annotate - [select for diffs], Sun Jun 8 20:08:43 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

Handle commits on a per-directory basis instead handling all of them at
once in local setup.  Also added '!' to reuse typed log message for all
following directories.

ok joris

Revision 1.165 / (download) - annotate - [select for diffs], Wed May 28 17:12:00 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.164: +2 -2 lines
Diff to previous 1.164 (colored)

Don't limit ourselfs when it comes to arguments on command line or
arguments sent by client.

ok joris

Revision 1.164 / (download) - annotate - [select for diffs], Sun Mar 9 03:14:52 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.163: +3 -2 lines
Diff to previous 1.163 (colored)

proper repository locking:
- all read operations now look for a lock, and wait if present but never
  try to lock the tree themselfs anymore.
- all write operations lock the tree where needed.
- commit locks all relevant directories before even attempting to start.

Revision 1.163 / (download) - annotate - [select for diffs], Sat Mar 8 20:26:34 2008 UTC (16 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.162: +5 -1 lines
Diff to previous 1.162 (colored)

add checkout/update -j support.
still has some rough edges.

Revision 1.162 / (download) - annotate - [select for diffs], Sat Mar 1 21:29:36 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.161: +4 -4 lines
Diff to previous 1.161 (colored)

spacing

Revision 1.161 / (download) - annotate - [select for diffs], Sun Feb 10 14:08:52 2008 UTC (16 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.160: +3 -1 lines
Diff to previous 1.160 (colored)

+ #define CVS_DATE_FMT   "%Y.%m.%d.%H.%M.%S"
...and use it.

Revision 1.160 / (download) - annotate - [select for diffs], Sun Feb 10 12:24:27 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.159: +2 -2 lines
Diff to previous 1.159 (colored)

fix ce_date declaration

Revision 1.159 / (download) - annotate - [select for diffs], Sun Feb 10 10:10:15 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.158: +3 -2 lines
Diff to previous 1.158 (colored)

parse any date tags set in CVS/Tag or CVS/Entries properly, and use
them for commands;

with tobias@

Revision 1.158 / (download) - annotate - [select for diffs], Sat Feb 9 20:04:00 2008 UTC (16 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.157: +3 -1 lines
Diff to previous 1.157 (colored)

Introduce cvs_ent_line_str() - formats CVS/Entries lines.
OK tobias@.

Revision 1.157 / (download) - annotate - [select for diffs], Sat Feb 9 12:48:23 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.156: +3 -1 lines
Diff to previous 1.156 (colored)

remote improvements:

- make sure the client creates the correct CVS/Repository when running
  checkout if there was no -d targetdir specified.
- allow -D to work remotely for both checkout and update.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Feb 9 12:20:33 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.155: +3 -2 lines
Diff to previous 1.155 (colored)

Get in proper support for checkout/update -A when it comes to keyword
expansion options.

OK joris@

Revision 1.155 / (download) - annotate - [select for diffs], Sat Feb 9 11:17:02 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.154: +2 -1 lines
Diff to previous 1.154 (colored)

Get in initial support for checkout -D.  Works fine with -r support right
now.

OK joris@

Revision 1.154 / (download) - annotate - [select for diffs], Mon Feb 4 18:23:58 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153 (colored)

Stripped off 'nb', which was (or was supposed to be) used to distinguish
between a named branch and a revision number supplied by -r.  This can
be done easier in cvs_write_tagfile directly.

OK joris@

Revision 1.153 / (download) - annotate - [select for diffs], Mon Feb 4 15:07:33 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.152: +2 -1 lines
Diff to previous 1.152 (colored)

Added -k flag support for all commands which support it.

OK joris@

Revision 1.152 / (download) - annotate - [select for diffs], Sun Feb 3 22:50:28 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.151: +2 -1 lines
Diff to previous 1.151 (colored)

more CVSROOT/module stuff:

- allow more then 1 module to be specified per definition
- respect the "!" sign which means: "hey ignore this dir when checking out"
- non alias definitions can now contain files

ok tobias@

Revision 1.151 / (download) - annotate - [select for diffs], Sun Feb 3 17:20:14 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.150: +4 -1 lines
Diff to previous 1.150 (colored)

better CVSROOT/module support, includes remote support and modules
that are not aliases (-a);

OK tobias@

Revision 1.150 / (download) - annotate - [select for diffs], Fri Feb 1 17:18:59 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.149: +2 -1 lines
Diff to previous 1.149 (colored)

Added rannotate support

OK xsa@

Revision 1.149 / (download) - annotate - [select for diffs], Thu Jan 31 10:15:05 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.148: +5 -2 lines
Diff to previous 1.148 (colored)

Replaced the unused cvs_command variable cmd_req with cmd_flags, which states
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@

Revision 1.148 / (download) - annotate - [select for diffs], Thu Jan 10 10:05:40 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.147: +2 -2 lines
Diff to previous 1.147 (colored)

Simply the use of cmdp and cvs_command by zapping cvs_command and working
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

Revision 1.147 / (download) - annotate - [select for diffs], Sun Sep 23 11:19:24 2007 UTC (16 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.146: +2 -2 lines
Diff to previous 1.146 (colored)

make sure when running update -r on existing files to overwrite
the sticky directory tag with it. since -r gets priority.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Sep 22 16:01:22 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.145: +2 -1 lines
Diff to previous 1.145 (colored)

better branching/sticky tag support, no branch commits yet though.

Revision 1.145 / (download) - annotate - [select for diffs], Mon Sep 10 19:11:08 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

remove my addition of portnumber for rsh in CVSROOT.
while it sounds like a "good" idea some people convinced me otherwise.

mostly because this breaks compat with GNU cvs.

Revision 1.144 / (download) - annotate - [select for diffs], Mon Sep 10 14:06:14 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.143: +2 -2 lines
Diff to previous 1.143 (colored)

Allow port specification in our CVSROOT which is used for our
ssh connection to our server.

Example: joris@somehost.com:2222:/cvs

OK tobias@

Revision 1.143 / (download) - annotate - [select for diffs], Tue Sep 4 19:07:03 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.142: +1 -3 lines
Diff to previous 1.142 (colored)

Removed dead code.

OK joris@, ray@

Revision 1.142 / (download) - annotate - [select for diffs], Thu Aug 30 11:19:29 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.141: +1 -4 lines
Diff to previous 1.141 (colored)

Remove old CVSROOT caching mechanisms.
from Tobias Stoeckmann

Revision 1.141 / (download) - annotate - [select for diffs], Tue Jul 3 13:22:42 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.140: +3 -1 lines
Diff to previous 1.140 (colored)

Rework the way opencvs works in relation to files in the Attic/:

Previously, files in the 'Attic/' were linked into our filelist as being
'Attic/filename,v' this caused unneeded stress on certain functions
like cvs_file_classify() who had to do pointer voodoo to split out
the 'Attic/' part and do other very weird stuff to normalize the pathname
of these files.

Instead, we handle these files early in the start when we
build the fileslist in cvs_repository_getdir(). When encountering
the 'Attic/' directory, we recurse in it if required but instead of
using the 'Attic/' directory component as our base directory we stick
with the directory name where 'Attic/' resides in, resulting in the
correct filename while maintaining the correct RCSpath for the file.

This made the following things a lot easier:
(and in most cases actually fixed the below points)

- status with files in Attic/.
- checking out HEAD repositories with files in Attic/.
- checking out repositories with -rTAG.
- updating with -rTAG.

and as an added bonus the following now also works:

- correctly creating CVS/Tag in both local and remote mode thus
  allowing update/status/and more to work correctly with the tagged tree.
  (thanks to the correct handling of -rTAG cases).
- resetting tags with opencvs -A properly works too now.

This is a major step forward into the usability
of OpenCVS when it comes to maintaining multiple tagged trees, the next
logical step would be to fix commiting to branches.

enjoy you -stable cowards.

tested by myself, xsa, niallo and ckuethe
thanks guys!

Revision 1.140 / (download) - annotate - [select for diffs], Thu Jun 28 21:38:09 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.139: +4 -1 lines
Diff to previous 1.139 (colored)

Sync revisions and time buffers size to be consistent with each others.
Simplifies further size tweaks if needed.
OK niallo@ ray@.

Revision 1.139 / (download) - annotate - [select for diffs], Wed Jun 27 20:27:38 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.138: +1 -3 lines
Diff to previous 1.138 (colored)

Remove last bits about login and logout commands, which will never be
implemented anyway. OK ray@ niallo@.

Revision 1.138 / (download) - annotate - [select for diffs], Wed Jun 27 03:58:16 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.137: +2 -1 lines
Diff to previous 1.137 (colored)

We were missing the needed clue/magic to have our remote setup
handle files that have been removed from the repository
correctly, which resulted in them still being in the working copy
after doing an update.

noticed and diff tested by ckuethe@.

Revision 1.137 / (download) - annotate - [select for diffs], Tue Jun 26 18:02:43 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.136: +2 -1 lines
Diff to previous 1.136 (colored)

Bring back the release command. More work to be done though.
OK joris@ niallo@.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Jun 18 17:54:13 2007 UTC (16 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.135: +17 -1 lines
Diff to previous 1.135 (colored)

first stab at history stuff for opencvs, currently only writes
to CVSROOT/history but cannot parse it yet with the 'history' command.

"Commit it." ray@

Revision 1.135 / (download) - annotate - [select for diffs], Thu Mar 22 17:18:19 2007 UTC (17 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.134: +2 -2 lines
Diff to previous 1.134 (colored)

use MD5_DIGEST_STRING_LENGTH instead of rolling our own lenght.
OK otto@ (before lock).

Revision 1.134 / (download) - annotate - [select for diffs], Thu Feb 22 06:42:09 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.133: +9 -5 lines
Diff to previous 1.133 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.133 / (download) - annotate - [select for diffs], Mon Feb 19 11:40:00 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)

Fix const inconsistencies, void pointer artithmetic and a few other
things. now gcc -Wall and lint are more happy. ok joris@ xsa@

Revision 1.132 / (download) - annotate - [select for diffs], Fri Jan 19 08:21:44 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.131: +2 -1 lines
Diff to previous 1.131 (colored)

move cvs_import() proto to the correct place.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Jan 18 08:49:08 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.130: +3 -2 lines
Diff to previous 1.130 (colored)

put functions protos at the right place.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Jan 17 17:54:50 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.129: +2 -1 lines
Diff to previous 1.129 (colored)

add support for remote checkout in both our client and server,
with this the last real dependency to actually be able to use opencvs
in a remote setup has been added.

based upon an initial diff from xsa@
'kay niallo@

Revision 1.129 / (download) - annotate - [select for diffs], Sat Jan 13 15:45:59 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.128: +2 -2 lines
Diff to previous 1.128 (colored)

remove BUF * argument from cvs_checkout_file() it will
no longer be used, ever.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Jan 12 23:32:01 2007 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

major re-work of the RCS api.  this results in 100x performance improvements in some places and much
reduced memory usage.  note that only checkout has been fully converted to use the new high-performance
functions.  other codepaths (e.g. update) still use the old method which is provided for backwards
compatibility.  we can convert the remaining slow bits over to the new api piece-by-piece.

"commit this, now" joris@
brad@ tested, too.

Revision 1.127 / (download) - annotate - [select for diffs], Fri Jan 12 09:27:25 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.126: +6 -1 lines
Diff to previous 1.126 (colored)

link to build the edit, editors, unedit, watch, and watchers commands.
more work needs to be done for them though.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Jan 7 02:39:24 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.125: +6 -1 lines
Diff to previous 1.125 (colored)

rewrite of the logmessage code, which allows you to
enter a logmessage into your favorite editor when commiting.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Jan 3 20:48:26 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.124: +2 -1 lines
Diff to previous 1.124 (colored)

if we are commiting a file, do not let the server resend it
with an 'Updated' response, seeing as the client will already have the
latest version. Instead, send the correct 'Checked-in' response.

Revision 1.124 / (download) - annotate - [select for diffs], Mon Dec 11 07:59:18 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.123: +2 -1 lines
Diff to previous 1.123 (colored)

Permit checkout from a read-only repository using the -R global option
or using the CVSREADONLYFS environment variable.
Request/test/ok todd@. Man page bits courtesy of jmc@.

Revision 1.123 / (download) - annotate - [select for diffs], Mon Nov 27 14:19:53 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.122: +2 -1 lines
Diff to previous 1.122 (colored)

client-side of the annotate command is usable, build it too.

Revision 1.122 / (download) - annotate - [select for diffs], Tue Nov 14 15:39:41 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.121: +3 -1 lines
Diff to previous 1.121 (colored)

Add support for the "Set" request.

Revision 1.121 / (download) - annotate - [select for diffs], Tue Nov 14 09:49:52 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.120: +2 -1 lines
Diff to previous 1.120 (colored)

add this, so version compiles...

Revision 1.120 / (download) - annotate - [select for diffs], Mon Nov 13 12:06:27 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.119: +2 -1 lines
Diff to previous 1.119 (colored)

Build admin command.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Nov 9 14:00:14 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.118: +2 -1 lines
Diff to previous 1.118 (colored)

cvs init remote bits.

Revision 1.118 / (download) - annotate - [select for diffs], Thu Nov 9 10:08:33 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.117: +3 -2 lines
Diff to previous 1.117 (colored)

fix pasto..

Revision 1.117 / (download) - annotate - [select for diffs], Tue Oct 31 15:23:40 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.116: +3 -1 lines
Diff to previous 1.116 (colored)

a step ahead in opencvs add|remove remote support.

Revision 1.116 / (download) - annotate - [select for diffs], Fri Jul 7 17:37:17 2006 UTC (17 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.115: +10 -1 lines
Diff to previous 1.115 (colored)

first part of opencvs remote, fairly useable on existing trees
although i advise against using it on real development trees for now.

only a few commands work right so far:
- commit
- diff
- status
- log
- update (partially working)

if you feel like testing remote and run into bugs feel free to
contact me, and please include a full trace (-t).

Revision 1.115 / (download) - annotate - [select for diffs], Sat Jul 1 20:30:46 2006 UTC (17 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.114: +2 -1 lines
Diff to previous 1.114 (colored)

implement the -p (dump) flag for cvs update

ok joris@

Revision 1.114 / (download) - annotate - [select for diffs], Mon Jun 19 05:05:17 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.113: +2 -3 lines
Diff to previous 1.113 (colored)

kill local and remote callback and just have one called fileproc.
we let the commands pass the correct function.

all in preparation for remote.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Jun 14 15:14:47 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.112: +3 -1 lines
Diff to previous 1.112 (colored)

handle existing CVS/Tag file when adding new directories. OK joris@.

Revision 1.112 / (download) - annotate - [select for diffs], Mon Jun 12 13:56:00 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.111: +3 -1 lines
Diff to previous 1.111 (colored)

bring back a working version of the `cvs init' command. OK joris@.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Jun 3 19:07:13 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.110: +2 -1 lines
Diff to previous 1.110 (colored)

add support for update -A and update -r<rev>.
hacking on the plane from toronto to barbados.

i will probably hack some more since im stuck in barbados
for 12 lovely hours over night cause the carribean airlines dont understand
the meaning over 'more than one flight a day'.

Revision 1.110 / (download) - annotate - [select for diffs], Tue May 30 06:34:39 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.109: +3 -2 lines
Diff to previous 1.109 (colored)

add CVS_PATH_ATTIC to cvs.h - this shouldve been commited
with my last commit when making sure our removed file moves into the Attic;

Revision 1.109 / (download) - annotate - [select for diffs], Sun May 28 01:24:28 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.108: +5 -2 lines
Diff to previous 1.108 (colored)

enable merging on update. if your file in your working copy
has been modified by yourself and there is a newer revision
we try and merge them together.

if the merge fails and has conflicts it will mark them inside
the file, you will need to resolve these by hand first before
you will be able to commit your modified file.

works transparent with gnu cvs, as it is suppose to.

Revision 1.108 / (download) - annotate - [select for diffs], Sat May 27 20:57:42 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.107: +2 -1 lines
Diff to previous 1.107 (colored)

allow diff to pick up newly added files with the -N flag.

Revision 1.107 / (download) - annotate - [select for diffs], Sat May 27 18:04:46 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.106: +4 -1 lines
Diff to previous 1.106 (colored)

basic support for CVSROOT/config - only supporting the 'tag' and
'umask' keyword right now.

Revision 1.106 / (download) - annotate - [select for diffs], Sat May 27 15:14:27 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.105: +6 -1 lines
Diff to previous 1.105 (colored)

allow commands to respect the -l flag, if the -l flag is
specified certain commands will not recurse into directories.

at the same time introduce a method of specifying wether or not
a command should look in the repository for files.

Revision 1.105 / (download) - annotate - [select for diffs], Sat May 27 05:20:25 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.104: +2 -1 lines
Diff to previous 1.104 (colored)

pruning (-P) support for both the update and checkout commands;

Revision 1.104 / (download) - annotate - [select for diffs], Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.103: +64 -139 lines
Diff to previous 1.103 (colored)

commit the new opencvs code, i have been hacking on
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.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Apr 1 20:11:25 2006 UTC (18 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.102: +3 -5 lines
Diff to previous 1.102 (colored)

fix some bugs that lint discovered for us.
ok niallo@

Revision 1.102 / (download) - annotate - [select for diffs], Wed Mar 15 19:59:36 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.101: +2 -44 lines
Diff to previous 1.101 (colored)

- add util.h, reorganising a bunch of things and exposing cvs_yesno()
function to be used by rcs.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Feb 10 10:15:48 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.100: +2 -2 lines
Diff to previous 1.100 (colored)

fix CVS_PATH_NOTIFY duplicate.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Feb 9 13:08:01 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.99: +9 -1 lines
Diff to previous 1.99 (colored)

add missing client-side paths definitions;

Revision 1.99 / (download) - annotate - [select for diffs], Fri Jan 27 15:42:35 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.98: +2 -3 lines
Diff to previous 1.98 (colored)

CVS_EX_BADROOT return code is not worth keeping;

Revision 1.98 / (download) - annotate - [select for diffs], Tue Jan 10 08:24:57 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.97: +2 -5 lines
Diff to previous 1.97 (colored)

zap unused variables;

Revision 1.97 / (download) - annotate - [select for diffs], Mon Jan 2 09:42:20 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.96: +1 -6 lines
Diff to previous 1.96 (colored)

more includes cleanup;

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jan 1 05:05:58 2006 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

more code cleanup;
ok xsa@

i'm commiting only hours after newyear,
ah the joys of being a true geek.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Dec 30 16:47:36 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored)

more code cleanup, ok niallo@ and xsa@

Revision 1.94 / (download) - annotate - [select for diffs], Fri Dec 30 02:03:28 2005 UTC (18 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

major cleanup of the functions handling the remote cvs protocol.
makes the code a lot more readable and understandable.

ok xsa@ and niallo@

Revision 1.93 / (download) - annotate - [select for diffs], Sat Dec 24 19:07:52 2005 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (colored)

add an argument to cvs_chdir() which enables or not the removal
of the directory we just chdir'd to.
Useful when the function fails especially for the server mode and
its temporary directory. This way it's not left behind on exit.
ok joris@.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Dec 19 18:21:30 2005 UTC (18 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.91: +1 -2 lines
Diff to previous 1.91 (colored)

move fatal() proto declaration to log.h; better for its use in usr.bin/rcs
OK joris@.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Dec 10 20:27:45 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.90: +4 -2 lines
Diff to previous 1.90 (colored)

switch to xmalloc stuff, me and xsa@ agreed on this a long
time ago, but we were being held back by jfb. too bad for him.

next step is to use fatal() through out the code for unrecoverable
errors instead of trying to be all nice and fluffy and reach main() again.

ok niallo@ and xsa@

Revision 1.90 / (download) - annotate - [select for diffs], Sat Dec 3 15:07:21 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.89: +2 -1 lines
Diff to previous 1.89 (colored)

fix date handling in opencvs, this was broken since the very start.
now, when you checkout a tree with gnu cvs, opencvs no longer sees all
the files as modified, and visa versa.

this actually makes gnu cvs and opencvs dance together in working copies.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Dec 3 15:02:54 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.88: +3 -1 lines
Diff to previous 1.88 (colored)

- teach opencvs about Entries.Log and what to do with it
  it it exists in the CVS admin dir.
- when writing the Entries file write it to Entries.Backup first and
  then rename it to Entries when the writing was successfull.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Dec 3 01:02:08 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.87: +4 -3 lines
Diff to previous 1.87 (colored)

add very basic support for the following stuff:

- checkout in local mode (example: /cvs)
- update in local and server mode (example: /cvs and user@host:/cvs)
- import in local and server mode (example: /cvs and user@host:/cvs)

what remains to be done:

- not all options are supported yet, and update cannot pick up newly
  added files yet. these things are pending and will be commited
  real soon.

- checkout only works locally right now.

- fix rcs parsing code so that we don't fucking hog 100% cpu
  on really BIG BIG BIG ass trees.

mainly tested by pedro@ and myself, thanks a lot pedro!

"go for it" niallo@

Revision 1.87 / (download) - annotate - [select for diffs], Sat Oct 22 17:32:57 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.86: +23 -1 lines
Diff to previous 1.86 (colored)

diff3 support, needed for merging files together;

"go for it" niallo@

Revision 1.86 / (download) - annotate - [select for diffs], Fri Oct 7 21:47:32 2005 UTC (18 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.85: +17 -17 lines
Diff to previous 1.85 (colored)

knf and spacing, ok joris@

Revision 1.85 / (download) - annotate - [select for diffs], Thu Sep 15 22:12:23 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.84: +8 -2 lines
Diff to previous 1.84 (colored)

strip trailing slashes from any arguments passed to opencvs.
ok xsa@

Revision 1.84 / (download) - annotate - [select for diffs], Thu Sep 15 17:01:10 2005 UTC (18 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored)

check in cvs_mkadmin() wether we need to create or not the
CVS/Tag file. Sync the rest of the code accordingly; OK joris@.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Sep 11 14:16:48 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

only remove and free a cvsroot struct if it has been added in
cvsroot_parse().

fixes segfaults opencvs has been receiving when cvsroot_parse() fails.
"go ahead" xsa@

Revision 1.82 / (download) - annotate - [select for diffs], Tue Sep 6 15:29:33 2005 UTC (18 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.81: +8 -1 lines
Diff to previous 1.81 (colored)

Make sure entries do not go away when we run through them in the file code.
Fixes corrupt Entry files.

Problem found by Mike Pechkin, thanks.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Sep 5 19:29:42 2005 UTC (18 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.80: +5 -2 lines
Diff to previous 1.80 (colored)

add new functions: cvs_write_tagfile() and cvs_parse_tagfile(),
write and parse a CVS/Tag file. Ok joris@.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Aug 16 16:34:19 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.79: +3 -1 lines
Diff to previous 1.79 (colored)

#define CVS_ENT_MAXLINELEN	1024
.. as the maximum length of a line in an Entries file, and use it.
problem spotted a while ago by mpech@.

ok jfb joris

Revision 1.79 / (download) - annotate - [select for diffs], Fri Aug 12 14:41:54 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

add cvs_rename() function; ok jfb

Revision 1.78 / (download) - annotate - [select for diffs], Tue Aug 9 10:33:46 2005 UTC (18 years, 9 months ago) by joris
Branch: MAIN
Changes since 1.77: +3 -1 lines
Diff to previous 1.77 (colored)

fix our root caching method, it was utterly broken and would
cause opencvs to segfault in several cases.

ok jfb@, xsa@

Revision 1.77 / (download) - annotate - [select for diffs], Thu Aug 4 13:31:14 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.76: +3 -1 lines
Diff to previous 1.76 (colored)

handle TMPDIR environment variable as well as -T <tmpdir> global option;
Ok jfb@ joris@.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Aug 3 14:43:08 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

check only once for the HOME environment variable and reuse
its value (if any) to check for the .cvsrc and .cvsignore files;
ok jfb@ joris@.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jul 27 10:36:13 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

rename cvs_remove_dir() to cvs_rmdir() because it might be confusing
with the `remove' command local functions. ok joris@.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jul 25 11:28:59 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.73: +181 -180 lines
Diff to previous 1.73 (colored)

KNF; mostly spaces vs. tabs; ok joris@ jfb@.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jul 24 17:12:25 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored)

add cvs_unlink(); a wrapper to unlunk() w/ an error msg as it is used in
many places. Also handle -n and -t global options.
ok joris@ jfb@.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jul 23 11:19:46 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

rewrite of the file code. the previous one was just
a mess and not clean.
this code is much cleaner, faster, and uses less memory overall.

tested by xsa@, brad@, Michael Knudsen, and myself.
okay xsa@

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jul 23 10:49:35 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

add cvs_chdir(); a wrapper to chdir() w/ an error msg as it is used in
many places. Let's make our life simpler for once.
ok jfb@ joris@.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Jul 21 09:51:07 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.69: +3 -1 lines
Diff to previous 1.69 (colored)

#define CVS_DESCR_FILE_EXT	",t"

ok joris@ jfb@.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Jul 13 16:20:44 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.68: +20 -17 lines
Diff to previous 1.68 (colored)

add cvs_rcs_getpath() function. Returns the path of the RCS file if it
does exist. Will save us code duplication.
ok joris@ jfb@.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jul 7 14:27:57 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)



remove trailing whitespaces

from deraadt@

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jun 17 15:09:55 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.66: +4 -2 lines
Diff to previous 1.66 (colored)



correctly build a temporary copy of the client its repository
localy, so the server can execute the local commands on it
and pipe the output to the client.

with this diff in, our server is now working, please note
that we currently don't have support for all commands yet,
but you can expect this soon.

ok xsa@

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jun 17 08:09:13 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored)

#define CVS_EX_ERR	-1

ok joris jfb

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 7 09:06:15 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.64: +1 -5 lines
Diff to previous 1.64 (colored)



remove ancient and unused CVS define. it was a leftover from
the daemon.

ok xsa@

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jun 1 17:44:34 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)



missed these in previous commits.

Revision 1.63 / (download) - annotate - [select for diffs], Tue May 31 08:58:47 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.62: +3 -2 lines
Diff to previous 1.62 (colored)

headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;

Revision 1.62 / (download) - annotate - [select for diffs], Thu May 26 22:25:31 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

don't keep a pointer to the file handle in CVSENTRIES, it is only
used in cvs_ent_write(), and simplify path building a bit

Revision 1.61 / (download) - annotate - [select for diffs], Thu May 26 21:25:49 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.60: +1 -2 lines
Diff to previous 1.60 (colored)

- remove cvs_ent_getent(), it's not used anymore
- don't use strcmp() to compare one-character strings

Revision 1.60 / (download) - annotate - [select for diffs], Thu May 26 03:07:20 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored)



first part of real pruning support

okay jfb@

Revision 1.59 / (download) - annotate - [select for diffs], Tue May 24 20:04:43 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)



- simplify cvs_mkadmin().
- create the correct base paths in checkout.
- remove the CVS_CMD_SENDARGS2 flag for checkout, it doesn't need it.

okay jfb@

Revision 1.58 / (download) - annotate - [select for diffs], Tue May 24 04:12:25 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.57: +56 -68 lines
Diff to previous 1.57 (colored)

Merge the cvs_cmd and cvs_cmd_info structures and add the necessary
fields to hook local versions of the commands.  This needs to go in
before it gets any bigger

ok joris

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 20 18:26:49 2005 UTC (19 years ago) by xsa
Branch: MAIN
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored)

first bits of the `cvs -n' option; ok jfb joris

Revision 1.56 / (download) - annotate - [select for diffs], Thu May 19 04:17:24 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.55: +3 -5 lines
Diff to previous 1.55 (colored)

use the date parsing code from date.y and fix timestamps on newly
created files so they match the values found in the corresponding
entries, otherwise all files appear as modified

ok joris

Revision 1.55 / (download) - annotate - [select for diffs], Wed May 18 20:24:19 2005 UTC (19 years ago) by joris
Branch: MAIN
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored)



build a local copy of the client's source tree when acting as a server.
more server stuff coming soon!

ok jfb@, xsa@

Revision 1.54 / (download) - annotate - [select for diffs], Mon May 2 15:00:18 2005 UTC (19 years ago) by xsa
Branch: MAIN
Changes since 1.53: +12 -2 lines
Diff to previous 1.53 (colored)

add missing structs for upcoming commands; joris ok

Revision 1.53 / (download) - annotate - [select for diffs], Mon Apr 25 17:59:16 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

* add missing 'R' flag in diff synopsis
* add the CVS_EX_BADROOT return code to indicate that there was no
  CVSROOT given or it was invalid

ok joris, xsa

Revision 1.52 / (download) - annotate - [select for diffs], Wed Apr 20 23:11:30 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

check the validity of tag names passed to the tag command, and print
an abort message if the tag is invalid.  also, match gnu cvs behaviour
with regards to command usage output on usage errors.

ok joris

Revision 1.51 / (download) - annotate - [select for diffs], Wed Apr 20 18:33:30 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

add the CVS_EX_OK return code to indicate everything went fine

ok joris

Revision 1.50 / (download) - annotate - [select for diffs], Tue Apr 12 14:58:40 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.49: +6 -1 lines
Diff to previous 1.49 (colored)



introduce our own set of error codes used by the commands to report
what exactly went wrong in case of an error.

ok jfb@

Revision 1.49 / (download) - annotate - [select for diffs], Wed Apr 6 16:35:25 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.48: +4 -3 lines
Diff to previous 1.48 (colored)

make cvs_findcmd() available to the rest of the program

ok joris@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Mar 31 17:18:24 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)



make sure the server command can still be reached with the
new framework.

ok xsa@

Revision 1.47 / (download) - annotate - [select for diffs], Wed Mar 30 17:43:04 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.46: +18 -18 lines
Diff to previous 1.46 (colored)



move all the client commands to the new command framework.
eliminates a lot of duplicate code.

ok jfb@

Revision 1.46 / (download) - annotate - [select for diffs], Thu Mar 24 01:03:41 2005 UTC (19 years, 2 months ago) by joris
Branch: MAIN
Changes since 1.45: +48 -1 lines
Diff to previous 1.45 (colored)



add the first pieces of our new command framework.

ok jfb@

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 6 21:09:00 2005 UTC (19 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)



initial support for the admin command. Not all options are working yet.

ok xsa@ jfb@

Revision 1.44 / (download) - annotate - [select for diffs], Tue Feb 1 18:51:04 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.43: +13 -8 lines
Diff to previous 1.43 (colored)

- accept a minus sign in front of the file's revision number to
  indicate that the file has been removed
- set the timestamp as invalid if we get the "dummy timestamp"
  string in the 4th field

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jan 24 16:12:56 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.42: +27 -15 lines
Diff to previous 1.42 (colored)

add missing command IDs

reviewed by xsa@ and Joris Vink

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jan 13 17:53:34 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.41: +10 -3 lines
Diff to previous 1.41 (colored)

more extern declarations for the common variables

Revision 1.41 / (download) - annotate - [select for diffs], Tue Dec 21 18:47:59 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.40: +14 -1 lines
Diff to previous 1.40 (colored)

gnu CVS has an undocumented -s command-line option to set a variable,
so let's support it too.  This will also be required to implement the
`Set' request handler.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 21 18:15:55 2004 UTC (19 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

on the way to `cvs remove'; ok jfb

Revision 1.39 / (download) - annotate - [select for diffs], Tue Dec 14 19:11:54 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

support the tag command

from Joris Vink

Revision 1.38 / (download) - annotate - [select for diffs], Thu Dec 9 20:03:27 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored)

support the 'annotate' command, will need some polishing

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 8 17:22:48 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

embrace and extend (!) cvs_logmsg_get() so we can now display
information based on its availability and have separate sections for
the Added, Modified and Removed file lists.  this will allow us to
use the same call for add, commit, import and possibly others

Original patch by Joris Vink, some rework from me for the other
sections

Revision 1.36 / (download) - annotate - [select for diffs], Wed Dec 8 16:07:43 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.35: +4 -1 lines
Diff to previous 1.35 (colored)

add a small protection to avoid reconnecting to a server to which we
are already connected.  instead, cvs will print a notice.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Dec 7 17:10:56 2004 UTC (19 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.34: +9 -13 lines
Diff to previous 1.34 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.34 / (download) - annotate - [select for diffs], Tue Dec 7 06:33:10 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

add missing parts for support of .cvsrc

tested, tweaked by and ok djm@

Revision 1.33 / (download) - annotate - [select for diffs], Thu Dec 2 17:45:44 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32 (colored)

cvs_logmsg_get() now accepts a list of files that it is getting the
message for and displays those files in the commented part of the
log message

Revision 1.32 / (download) - annotate - [select for diffs], Fri Nov 26 15:15:36 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31 (colored)

struct cvs_file -> CVSFILE

Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 18 15:57:39 2004 UTC (19 years, 6 months ago) by jfb
Branch: MAIN
Changes since 1.30: +4 -1 lines
Diff to previous 1.30 (colored)

Prototypes for the log message functions

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 9 20:49:17 2004 UTC (19 years, 6 months ago) by krapht
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

We don't need to keep a copy of each Entries line, it isn't used
anywhere and it consumes memory uselessly.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Aug 27 15:40:44 2004 UTC (19 years, 8 months ago) by jfb
Branch: MAIN
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

cleanup and reset the valid requests array when allocating a new root
structure.  Also enable the use of at least Valid-responses and
valid-requests

Revision 1.28 / (download) - annotate - [select for diffs], Fri Aug 13 12:47:54 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.27: +7 -3 lines
Diff to previous 1.27 (colored)

Ditch the 'ce_timestamp' field in favor of 'ce_mtime', which keeps
the timestamp in time_t instead of a string

Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 13 02:56:37 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.26: +3 -0 lines
Diff to previous 1.26 (colored)

Add a macro for dummy timestamp strings

Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 13 02:16:29 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Add cvs_datesec() to calculate the time_t value corresponding to a
ctime(3)-style date string

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 6 20:08:49 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24 (colored)

Simplify cvs_splitpath() by requiring only one buffer to copy the result
into

Revision 1.24 / (download) - annotate - [select for diffs], Fri Aug 6 14:49:03 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.23: +1 -0 lines
Diff to previous 1.23 (colored)

Handle the '-b' and '-x' global options even if we don't support them,
and add support for case insensitivity

Revision 1.23 / (download) - annotate - [select for diffs], Fri Aug 6 13:01:10 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.22: +2 -0 lines
Diff to previous 1.22 (colored)

Have one global hierarchy of files that are being affected.  This will
allow us to build the tree in memory as well as on disk for operations
such as checkout and update.  It will also allow us to write all Entries
in a single disk write and to avoid creating empty directories on updates
when pruning is requested

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 5 13:32:08 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.21: +4 -0 lines
Diff to previous 1.21 (colored)

Adapt the logging so any messages generated by the server will be
prepended with a 'M' or 'E' command, depending on the log level, and
follow the GNU behaviour of printing the command name after the program
name in messages

Revision 1.21 / (download) - annotate - [select for diffs], Thu Aug 5 13:24:37 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.20: +2 -0 lines
Diff to previous 1.20 (colored)

When spawning the subprocess for the connection, attach a pipe to its
standard error as well

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 3 00:05:54 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.19: +6 -0 lines
Diff to previous 1.19 (colored)

Add a per-root mask of supported requests and a set of macros to set, get
and clear the appropriate bits for each request

Revision 1.19 / (download) - annotate - [select for diffs], Mon Aug 2 22:45:57 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.18: +13 -7 lines
Diff to previous 1.18 (colored)

When we connect to a remote server, always send the Version request and
add a hack so we don't print it (we receive it through a 'M') but store
it in the cvs root structure instead.  This will allow us to make better
decisions in what we use to communicate with the remote server.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 30 23:13:24 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

No more global cvs_root

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 30 17:37:13 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.16: +5 -76 lines
Diff to previous 1.16 (colored)

* remove header cruft that belongs in file.h
* be more intelligent with the file open mode.  It seems rewind() doesn't
  work too well with a file opened in append mode

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 30 01:49:22 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.15: +13 -135 lines
Diff to previous 1.15 (colored)

Move to the new API for the client-server protocol.  All functions now
take a cvs root structure as parameter.  This will allow for much easier
management of CVS trees that make use of multiple roots.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 29 18:22:28 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.14: +7 -0 lines
Diff to previous 1.14 (colored)

Use the `CVS' define to simplify exporting symbols

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 29 16:52:39 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

typo

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 29 16:46:58 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.12: +8 -4 lines
Diff to previous 1.12 (colored)

Use tail queues instead of lists to manage file entries

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 29 15:41:58 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.11: +2 -0 lines
Diff to previous 1.11 (colored)

* when comparing timestamps, use the last modification time instead
  of the last access time.  No wonder all the files appeared as
  modified
* always show directories as up to date
* skeleton for cvs_file_getspec()

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 28 01:53:29 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.10: +8 -2 lines
Diff to previous 1.10 (colored)

* prepare for an overhaul of the connection code by adding a cvsroot
  parameter to the cvs_client_connect() and cvs_client_disconnect()
  functions, so we rely less and less on a global variable

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 27 12:01:58 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

* create cvs_file_alloc() to keep one copy of the file allocation code
  and reuse it
* add cvs_file_create() to explicitly create a file or directory
* add cvs_mkadmin() to fill the administrative files for a CVS directory

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 26 15:56:43 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.8: +12 -8 lines
Diff to previous 1.8 (colored)

Add the handler for the checkout command

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jul 25 03:18:53 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.7: +18 -4 lines
Diff to previous 1.7 (colored)

* cleanup the file API with regards to flag handling and
  general structure
* implement cvs_ent_close() correctly, fix some memory leaks, and add
  cvs_ent_getent() to get a single entry easily

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 23 05:40:32 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.6: +47 -7 lines
Diff to previous 1.6 (colored)

Revamp the file interface to make life easier

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 16 03:08:26 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

* add prototypes for cvs_getargv() and cvs_freeargv()
* remove cvs_file_free(), cvs_freeargv() does exactly the same

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 14 19:08:48 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (colored)

prototype for cvs_ent_addln()

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 14 19:03:00 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.3: +3 -4 lines
Diff to previous 1.3 (colored)

Unbreak the Entries loading code and move to a tail queue so we can remove
entries as well when it will be needed

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 14 04:32:42 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

prepare the entries interface so we can add entries

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 14 03:33:09 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.1: +8 -0 lines
Diff to previous 1.1 (colored)

cvsignore support and simpler API for file access

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: OpenCVS
CVS Tags: OpenCVS_0_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

* initial import from the cvs-tools module

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 13 22:02:40 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Branch point for: OpenCVS

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.