OpenBSD CVS

CVS log for src/usr.bin/cvs/entries.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.107 / (download) - annotate - [select for diffs], Thu Oct 13 20:51:25 2016 UTC (7 years, 7 months ago) by fcambus
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, 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, OPENBSD_6_1_BASE, OPENBSD_6_1, HEAD
Changes since 1.106: +3 -4 lines
Diff to previous 1.106 (colored)

rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.

OK millert@

Revision 1.106 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.105: +15 -16 lines
Diff to previous 1.105 (colored)

Remove xfree(), like already done for RCS. From Michael W Bombardieri,
ok mmcc

Revision 1.105 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:41 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.104 / (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_5_8_BASE, OPENBSD_5_8
Changes since 1.103: +7 -1 lines
Diff to previous 1.103 (colored)

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

Revision 1.103 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.102: +8 -8 lines
Diff to previous 1.102 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.102 / (download) - annotate - [select for diffs], Thu Mar 19 09:53:16 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: 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, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.101: +12 -5 lines
Diff to previous 1.101 (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.101 / (download) - annotate - [select for diffs], Mon Feb 23 21:32:08 2009 UTC (15 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.100: +1 -4 lines
Diff to previous 1.100 (colored)

we no longer push out Set-sticky to the client when writing
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@

Revision 1.100 / (download) - annotate - [select for diffs], Sat Jun 14 20:04:14 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

unfuck CVS/Tag creation, karma sucks doesn't it.

Revision 1.99 / (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.98: +10 -5 lines
Diff to previous 1.98 (colored)

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

ok joris

Revision 1.98 / (download) - annotate - [select for diffs], Sat Jun 14 03:19:15 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.97: +23 -9 lines
Diff to previous 1.97 (colored)

don't always re-open the same CVS/Entries file, instead keep the
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@

Revision 1.97 / (download) - annotate - [select for diffs], Wed Jun 11 02:19:13 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.96: +4 -4 lines
Diff to previous 1.96 (colored)

Avoid possible NULL pointer dereferences by using reentrant versions
of time functions.

ok joris

Revision 1.96 / (download) - annotate - [select for diffs], Mon Jun 9 22:31:24 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.95: +8 -4 lines
Diff to previous 1.95 (colored)

Properly handle merged files and conflicts which may arrise while merge.
Instead of ignoring all files which contain possible conflict markers,
only watch out for files which have actually been merged.

With input by and ok joris.

Revision 1.95 / (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.94: +2 -2 lines
Diff to previous 1.94 (colored)

spacing

Revision 1.94 / (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.93: +3 -3 lines
Diff to previous 1.93 (colored)

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

Revision 1.93 / (download) - annotate - [select for diffs], Sun Feb 10 11:52:35 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.92: +1 -3 lines
Diff to previous 1.92 (colored)

- cvs_write_tagfile() is not responsible to remove CVS/Tag itself
- construct right CVS/Repository paths in cvs_mkpath()

fixes remote Issues;

Revision 1.92 / (download) - annotate - [select for diffs], Sun Feb 10 10:21:42 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.91: +6 -5 lines
Diff to previous 1.91 (colored)

properly initialize cvs_specified_date so we dont end up with
random stuff going on

Revision 1.91 / (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.90: +33 -5 lines
Diff to previous 1.90 (colored)

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

with tobias@

Revision 1.90 / (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.89: +20 -1 lines
Diff to previous 1.89 (colored)

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

Revision 1.89 / (download) - annotate - [select for diffs], Sat Feb 9 17:01:43 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.88: +6 -3 lines
Diff to previous 1.88 (colored)

Support for checkout -D extended:
Properly write CVS/Tag and CVS/Entries on various combinations of -r and -D.

OK joris@

Revision 1.88 / (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.87: +8 -3 lines
Diff to previous 1.87 (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.87 / (download) - annotate - [select for diffs], Mon Feb 4 15:08:44 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.86: +8 -4 lines
Diff to previous 1.86 (colored)

Make CVS/Entries.Log look the same as GNU cvs'.  This way interoperability
is possible.

OK joris@

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

xmalloc + memset -> xcalloc

Revision 1.85 / (download) - annotate - [select for diffs], Sun Nov 11 10:06:52 2007 UTC (16 years, 6 months ago) by tobias
Branch: MAIN
Changes since 1.84: +11 -3 lines
Diff to previous 1.84 (colored)

CVS/Entries needs at least one line specifying a 'D'irectory.  If the
current directory has subdirectories, there is no need to apply another
'D' line.  Sticks at GNU cvs behaviour.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Oct 5 19:28:23 2007 UTC (16 years, 7 months ago) by gilles
Branch: MAIN
Changes since 1.83: +3 -8 lines
Diff to previous 1.83 (colored)

strcspn() change

was okay'd by pyr@ and ok by millert@

Revision 1.83 / (download) - annotate - [select for diffs], Tue Sep 25 11:10:28 2007 UTC (16 years, 7 months ago) by chl
Branch: MAIN
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored)

missing header for strptime

ok joris@

Revision 1.82 / (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.81: +16 -7 lines
Diff to previous 1.81 (colored)

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

Revision 1.81 / (download) - annotate - [select for diffs], Sat Sep 22 15:57:24 2007 UTC (16 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.80: +8 -3 lines
Diff to previous 1.80 (colored)

we no longer create a 0 sized file in our /tmp/cvs-serv<pid> server
directory when a client sends us info about a file that is up to date.

instead, remember the file is up to date in our CVS/Entries. Saves us a lot
of headaches on very big trees like src/

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

Removed dead code.

OK joris@, ray@

Revision 1.79 / (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.78: +2 -1 lines
Diff to previous 1.78 (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.78 / (download) - annotate - [select for diffs], Sat Jun 2 09:00:19 2007 UTC (16 years, 11 months ago) by niallo
Branch: MAIN
Changes since 1.77: +10 -8 lines
Diff to previous 1.77 (colored)

don't try to parse a server conflict message as a date.
makes cvs remote merging with conflicts work a bit better.

ok joris@ xsa@

Revision 1.77 / (download) - annotate - [select for diffs], Sat May 26 02:30:28 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

Treat lines that start with "dummy timestamp from new-entry" as a
dummy timestamp, not just lines that match it exactly.

OK xsa@.

Revision 1.76 / (download) - annotate - [select for diffs], Wed May 16 20:51:22 2007 UTC (17 years ago) by xsa
Branch: MAIN
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

Figure out DST by setting tm_isdst element to -1.
From Tobias Stoeckmann. OK otto@.

Revision 1.75 / (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.74: +4 -3 lines
Diff to previous 1.74 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.74 / (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.73: +2 -2 lines
Diff to previous 1.73 (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.73 / (download) - annotate - [select for diffs], Sat Feb 17 18:23:43 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.72: +11 -13 lines
Diff to previous 1.72 (colored)

cvs_path_cat() removal since we can now easily handle that
functionality w/ xsnprintf(); Initial diff started by thib@.
OK thib@ joris@.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Feb 4 06:09:31 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.71: +7 -6 lines
Diff to previous 1.71 (colored)

dont bother trying to parse empty lines as dates.
cuts away some cpu time.

from Tobias Ulmer, thanks a million!

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jan 27 18:53:16 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

mktime() produces local time, so add in tm_gmtoff to get UTC.
ok xsa@ and joris@

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jan 26 11:19:44 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.69: +8 -3 lines
Diff to previous 1.69 (colored)

Handle CVS/Entries and file timestamp correctly so we do
not mistakenly see a file as Modified while it is not.

As a result, we can remove the very hackish cvs_hack_time() and
GNU cvs and opencvs should almost get along now.

lotsa help and okay The otto@

Revision 1.69 / (download) - annotate - [select for diffs], Thu Jan 25 18:56:33 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.68: +7 -16 lines
Diff to previous 1.68 (colored)

use more stack allocations for fixed size buffers. ok xsa@ joris@

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jan 24 13:55:11 2007 UTC (17 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

terminate CVS/Entries with a newline.
ok joris@, xsa@

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jan 24 08:34:12 2007 UTC (17 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.66: +1 -2 lines
Diff to previous 1.66 (colored)

the ok from xsa was for another diff, rollback previous commit.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jan 24 08:28:46 2007 UTC (17 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored)

put a newline at the end of the Entries file, this syncs with
GNU cvs behavior and is easier on the eyes.
ok xsa@

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jan 12 18:24:59 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.64: +5 -2 lines
Diff to previous 1.64 (colored)

and thou shalt not leak memory when removing entries

Revision 1.64 / (download) - annotate - [select for diffs], Thu Dec 7 13:28:21 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.63: +13 -4 lines
Diff to previous 1.63 (colored)

check for cvs_path_cat() return value.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 7 10:44:16 2006 UTC (17 years, 5 months ago) by xsa
Branch: MAIN
Changes since 1.62: +9 -8 lines
Diff to previous 1.62 (colored)

use errno where appropriate in error messages.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Oct 24 06:25:10 2006 UTC (17 years, 6 months ago) by ray
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Reuse len instead of calling strlen again.

OK xsa@.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jul 9 01:47:20 2006 UTC (17 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.60: +5 -3 lines
Diff to previous 1.60 (colored)

more straightforward trace (-t) output, too much is just too noisy.

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

useless casts are so the 80s

Revision 1.59 / (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.58: +109 -1 lines
Diff to previous 1.58 (colored)

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

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jun 6 05:13:39 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

add support for the -D option of update,
-D allows you to update a file to matching a specified date:

opencvs up -D "1 hour ago" foobar will take the first matching
revision that was commited 1 hour ago.

Revision 1.57 / (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.56: +230 -411 lines
Diff to previous 1.56 (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.56 / (download) - annotate - [select for diffs], Fri Apr 14 02:45:35 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.55: +13 -13 lines
Diff to previous 1.55 (colored)

remove a metric buttload of excessive ()
no binary change; ok ray

Revision 1.55 / (download) - annotate - [select for diffs], Wed Apr 5 01:38:55 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.54: +3 -5 lines
Diff to previous 1.54 (colored)

Use variable names for sizeof, remove casts in front of xmalloc,
use xcalloc and xstrdup where appropriate, and other stuff.

OK joris@

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jan 2 08:11:56 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.53: +2 -9 lines
Diff to previous 1.53 (colored)

#include's cleanup; ok joris@ niallo@.

Revision 1.53 / (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.52: +11 -38 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Sat Dec 3 15:02:55 2005 UTC (18 years, 5 months ago) by joris
Branch: MAIN
Changes since 1.51: +63 -5 lines
Diff to previous 1.51 (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.51 / (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.50: +8 -3 lines
Diff to previous 1.50 (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.50 / (download) - annotate - [select for diffs], Sat Oct 22 17:23:21 2005 UTC (18 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored)

- don't check for admin files when running init;
- don't pass the Entry for newly added files to cvs_date_parse()
- in rcs_rev_add don't bother looking for the previous rev if we
  are creating the RCS file.

from PR 4575

Revision 1.49 / (download) - annotate - [select for diffs], Tue Sep 6 17:08:05 2005 UTC (18 years, 8 months ago) by xsa
Branch: MAIN
Changes since 1.48: +5 -5 lines
Diff to previous 1.48 (colored)

more bits for the local remove command support; OK joris@.

Revision 1.48 / (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.47: +2 -1 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Mon Aug 22 08:53:12 2005 UTC (18 years, 9 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.46: +7 -3 lines
Diff to previous 1.46 (colored)

add the correct entry for newly added files.
ok xsa@

Revision 1.46 / (download) - annotate - [select for diffs], Fri Aug 19 08:48:30 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

style;

Revision 1.45 / (download) - annotate - [select for diffs], Tue Aug 16 16:34:19 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Fri Aug 12 18:46:53 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

- style fix
- add trace message in cvs_ent_remove()
ok jfb

Revision 1.43 / (download) - annotate - [select for diffs], Wed Aug 10 14:49:20 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

fgets() expects the 2nd arg to be an int. OK jfb@ joris@.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jul 25 12:05:43 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored)

KNF;

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jul 24 16:46:39 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

do not use `if (!var)' unless it's boolean, better use an == check;
ok jfb@ joris@.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jul 21 11:42:24 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

<sys/param.h> is already included in "cvs.h", no need to duplicate;

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 14 07:38:35 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.38: +26 -26 lines
Diff to previous 1.38 (colored)

be consistent when declaring cvs_ent structs; ok jfb@ joris@.

Revision 1.38 / (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.37: +18 -5 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Tue Jun 7 08:19:07 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.36: +3 -5 lines
Diff to previous 1.36 (colored)

cvs_path_cat() already sets errno, no need to duplicate.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 7 07:23:41 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.35: +22 -5 lines
Diff to previous 1.35 (colored)

only display the ``cannot open ./CVS/Entries'' error message when
appropriate ... ok joris@.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 2 20:19:30 2005 UTC (18 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.34: +2 -5 lines
Diff to previous 1.34 (colored)



remove unneeded error reporting when using cvs_path_cat(), the
function does it for us.

OK jfb@

Revision 1.34 / (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.33: +2 -2 lines
Diff to previous 1.33 (colored)

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

Revision 1.33 / (download) - annotate - [select for diffs], Fri May 27 17:39:40 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

cvs_noexec check; ok jfbeers

Revision 1.32 / (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.31: +12 -21 lines
Diff to previous 1.31 (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.31 / (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.30: +3 -36 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 24 04:12:25 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Thu May 19 21:45:45 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.28: +8 -11 lines
Diff to previous 1.28 (colored)

only allocate a revision number if the entry is for a regular file,
and make sure the ce_opts and ce_tag fields point to valid strings
even for directories

ok joris

Revision 1.28 / (download) - annotate - [select for diffs], Thu May 19 04:17:24 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.27: +2 -3 lines
Diff to previous 1.27 (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.27 / (download) - annotate - [select for diffs], Fri Apr 22 15:16:15 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.26: +6 -4 lines
Diff to previous 1.26 (colored)



finish support for the '-' token in the Entry file, this allows
us to mark files as removed, and lets the remove command work
completely.

tested and ok xsa@, jfb@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Apr 15 14:34:15 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.25: +11 -5 lines
Diff to previous 1.25 (colored)

snprintf() return values checks; joris ok

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 22 16:09:28 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

do not leak a file pointer in case of error

from Joris Vink

Revision 1.24 / (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.23: +18 -3 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Fri Jan 14 16:57:58 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.22: +1 -4 lines
Diff to previous 1.22 (colored)

stupid me, no need to reinit the queue

pointed by henning@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 14 16:39:21 2005 UTC (19 years, 4 months ago) by jfb
Branch: MAIN
Changes since 1.21: +11 -1 lines
Diff to previous 1.21 (colored)

when removing the last entry from the tail queue, reinitialize the
queue for sanity, and make sure that the current pointer is set to
the next item if it points to the item being removed.

fixes a crash reported by brad@, tested by joris and brad@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 14 21:23:44 2004 UTC (19 years, 5 months ago) by jfb
Branch: MAIN
Changes since 1.20: +5 -7 lines
Diff to previous 1.20 (colored)

When loading directory entries, create file structures for files which
have been lost but have a valid entry.

Revision 1.20 / (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.19: +9 -21 lines
Diff to previous 1.19 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 6 21:03:12 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +2 -3 lines
Diff to previous 1.18 (colored)

tighten vertical spacing for else; jfb ok

Revision 1.18 / (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.17: +1 -8 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Tue Aug 31 12:25:51 2004 UTC (19 years, 8 months ago) by joris
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored)



use the correct Entries path to store in cef_path;
ok jfb

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

Instead of keeping an open pointer to the Entries file when opening with
write access, close it and reopen it only on demand, since large trees
can contain enough Entries files to generate a 'Too many open files'.

Problem spotted by Todd Fries.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Aug 13 13:24:13 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.14: +16 -10 lines
Diff to previous 1.14 (colored)

* add an entry for directories when we create them
* when writing a directory entry, skip the revision and timestamp

Revision 1.14 / (download) - annotate - [select for diffs], Fri Aug 13 12:58:44 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.13: +5 -1 lines
Diff to previous 1.13 (colored)

When the mtime is (time_t)-1, print the dummy timestamp string instead
of a bogus date

Revision 1.13 / (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.12: +8 -3 lines
Diff to previous 1.12 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 12 18:33:47 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.11: +12 -9 lines
Diff to previous 1.11 (colored)

When creating a new Entries file, make sure we put one 'D' instead of
leaving the file empty

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

Fix usage of cvs_splitpath()

Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 4 15:39:10 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.9: +33 -33 lines
Diff to previous 1.9 (colored)

Simplify entry parsing

Revision 1.9 / (download) - annotate - [select for diffs], Tue Aug 3 14:48:02 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.8: +25 -0 lines
Diff to previous 1.8 (colored)

Implement cvs_ent_remove()

Revision 1.8 / (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.7: +75 -22 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Tue Jul 27 13:12:10 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.6: +8 -2 lines
Diff to previous 1.6 (colored)

* when opening an Entries file for writing, open the file in append mode
* when parsing the entries, break if we encounter the last line 'D'
* when adding the line to the file, generate it from the fields instead
  of taking the line

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

Fix pointer passed to fclose() in cvs_ent_close()

Revision 1.5 / (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.4: +75 -9 lines
Diff to previous 1.4 (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.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: +31 -43 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 05:16:04 2004 UTC (19 years, 10 months ago) by jfb
Branch: MAIN
Changes since 1.2: +69 -8 lines
Diff to previous 1.2 (colored)

make adding entries to the Entries file work

Revision 1.2 / (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.1: +1 -1 lines
Diff to previous 1.1 (colored)

prepare the entries interface so we can add entries

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

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.