OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 20 13:39:11 2017 UTC (6 years, 10 months ago) by okan
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, HEAD
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)

Add missing <time.h> header.

ok joris@

Revision 1.44 / (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_6_1_BASE, OPENBSD_6_1
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

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

OK millert@

Revision 1.43 / (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.42: +3 -3 lines
Diff to previous 1.42 (colored)

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

Revision 1.42 / (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_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (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.41 / (download) - annotate - [select for diffs], Fri Dec 13 15:19:41 2013 UTC (10 years, 5 months ago) by zhuk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored)

Make it compile again. And there is a time_t fix as a bonus!

Input and okay jca@.

Revision 1.40 / (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_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
Changes since 1.39: +7 -7 lines
Diff to previous 1.39 (colored)

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

OK xsa zinovik

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jun 19 19:03:25 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.38: +16 -8 lines
Diff to previous 1.38 (colored)

Add entries to history file only if it already exists.

ok joris

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jun 11 00:47:05 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.37: +66 -12 lines
Diff to previous 1.37 (colored)

GNU cvs "compresses" CVSROOT/history by shrinking entry for working dir
and repositry by replacing home directory with ~ and adding things like
"*4" at the end of working directory if the last part of a path is the
same for working directory and repository.

ok joris

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jun 10 16:32:35 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.36: +42 -21 lines
Diff to previous 1.36 (colored)

Added support for tag and date in cvs_history_add for checkout/export.

ok joris

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 10 15:55:54 2008 UTC (15 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

If cvs_history_add has been called for a specific file, repo must be built
up from working directory of that file instead of top directory.

ok joris

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jan 31 10:15:05 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Mon Sep 10 10:56:37 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Properly display list of commands in default 80 column terminal.

OK joris@

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 9 05:56:44 2007 UTC (16 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Use '\0', not NULL, for NUL characters.

Pointed out by Anonymous Coward on slashdot.

OK niallo.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jul 3 13:22:43 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.31: +1 -4 lines
Diff to previous 1.31 (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.31 / (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.30: +2 -2 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 28 04:48:52 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.29: +9 -4 lines
Diff to previous 1.29 (colored)

when logging to CVSROOT/history as a server fill in the
directory as <remote> instead of /tmp/cvs-serv<pid>

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jun 20 16:25:46 2007 UTC (16 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Add missing `his' command alias. OK joris@.

Revision 1.28 / (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.27: +123 -193 lines
Diff to previous 1.27 (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.27, Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.26: +1 -1 lines
FILE REMOVED

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.26 / (download) - annotate - [select for diffs], Mon Jan 23 14:02:42 2006 UTC (18 years, 3 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.25: +4 -3 lines
Diff to previous 1.25 (colored)

wrap usage;

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

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

Revision 1.24 / (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.23: +27 -28 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Mon Jul 25 12:05:43 2005 UTC (18 years, 9 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.22: +14 -14 lines
Diff to previous 1.22 (colored)

KNF;

Revision 1.22 / (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.21: +1 -2 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 11 18:13:01 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.20: +5 -1 lines
Diff to previous 1.20 (colored)



we aren't using cvs_history_print() right now

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 30 16:37:29 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.19: +31 -27 lines
Diff to previous 1.19 (colored)



missing method checks in pre_exec handler.

ok xsa@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 28 14:34:56 2005 UTC (18 years, 10 months ago) by xsa
Branch: MAIN
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored)

send the date (-D) here too ..
+ some style nitpicks to be consistent w/ the rest of the code;

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

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

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

remove LP_ERROR log priority level and rather use LP_ERR as they are both
the same...

ok jfb joris

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 29 00:18:01 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.15: +11 -1 lines
Diff to previous 1.15 (colored)

handle -r option;

Revision 1.15 / (download) - annotate - [select for diffs], Fri May 27 20:47:06 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.14: +22 -5 lines
Diff to previous 1.14 (colored)

- add missing options
- correctly handle -a and -u flags

ok joris jfbeers

Revision 1.14 / (download) - annotate - [select for diffs], Tue May 24 04:12:25 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.13: +20 -14 lines
Diff to previous 1.13 (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.13 / (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.12: +9 -9 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Mon Apr 11 18:02:58 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)



don't include sysexits.h now we don't use those error codes
anymore.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Apr 11 17:56:27 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)



remove EX_USAGE error codes

ok jfb@

Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 3 17:32:50 2005 UTC (19 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

first round of EX_* exit codes removal; ok joris@.

Revision 1.9 / (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.8: +45 -65 lines
Diff to previous 1.8 (colored)



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

ok jfb@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 28 20:45:07 2005 UTC (19 years, 2 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)



do not forget to call cvs_connect() when we are using a remote cvs server.

ok jfb@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 31 22:04:58 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.6: +16 -12 lines
Diff to previous 1.6 (colored)

perform error checking on all the protocol calls

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 31 21:46:43 2005 UTC (19 years, 3 months ago) by jfb
Branch: MAIN
Changes since 1.5: +8 -1 lines
Diff to previous 1.5 (colored)

don't crash if we have no valid CVSROOT string

Revision 1.5 / (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.4: +9 -10 lines
Diff to previous 1.4 (colored)

less whitespace, more pretty.  ok jfb

Revision 1.4 / (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.3: +3 -5 lines
Diff to previous 1.3 (colored)

tighten vertical spacing for else; jfb ok

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 30 01:49:23 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.2: +10 -10 lines
Diff to previous 1.2 (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.2 / (download) - annotate - [select for diffs], Thu Jul 29 18:34:23 2004 UTC (19 years, 9 months ago) by jfb
Branch: MAIN
Changes since 1.1: +4 -5 lines
Diff to previous 1.1 (colored)

No more cvs_root

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.