OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Mon Aug 28 19:33:20 2017 UTC (6 years, 8 months ago) by otto
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.30: +2 -2 lines
Diff to previous 1.30 (colored)

fix const related warnings; ok millert@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Nov 11 21:00:59 2010 UTC (13 years, 6 months ago) by nicm
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, 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, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

Nuke dead assignments and a dead function, from Michael W Bombardieri
using lint.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Sep 23 18:10:16 2010 UTC (13 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add cvs_mkdir() for recursive directory creation on import, based on a
diff from Michael W Bombardieri in PR 6398.

tested by & ok jasper

Revision 1.28 / (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.27: +7 -7 lines
Diff to previous 1.27 (colored)

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

OK xsa zinovik

Revision 1.27 / (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.26: +3 -3 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Thu Jun 12 07:16:14 2008 UTC (15 years, 11 months ago) by joris
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.25: +2 -2 lines
Diff to previous 1.25 (colored)

completely kill the need for TMP_DIR when running checkout,
which gives us better performance among other things.

this is however disabled in a few cases:
1) whenever you run checkout over an existing tree (which acts as update)
2) whenever you specify -d or a module alias

we're planning on enabling this behaviour for case 2 in the future.

anoncvs sysadmins now love us even more.

ok tobias@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jun 10 01:00:35 2008 UTC (15 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Mon Feb 4 19:08:32 2008 UTC (16 years, 3 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

more CVSROOT/modules stuff:

- support for -i flag:
	Run "prog" on "cvs commit" from top-level of module.
- fix some memory leaks in modules.c
- pass the line number from cvs_read_config() towards the callbacks
  so its easier to print out where it's going wrong, if it ever does.

OK tobias@

Revision 1.23 / (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.22: +2 -3 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Thu Sep 13 13:10:57 2007 UTC (16 years, 8 months ago) by tobias
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Added annotate support for local and remote repositories. Behaves like
GNU cvs but is a little faster.

OK joris@, ray@, xsa@

Revision 1.21 / (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.20: +1 -4 lines
Diff to previous 1.20 (colored)

Removed dead code.

OK joris@, ray@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jul 3 13:22:43 2007 UTC (16 years, 10 months ago) by joris
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Wed May 9 21:19:28 2007 UTC (17 years ago) by xsa
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

cvs_splitpath() isn't used anymore; from Tobias Stoeckmann.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Apr 20 08:36:00 2007 UTC (17 years, 1 month ago) by xsa
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

- correct signal handling and process waiting for the EDITOR support code
(From ray's code in sendbug(1))
- nuke cvs_exec() as it is not used anymore

Prompted by deraadt@ a few weeks ago.
OK ray@.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 19 11:40:00 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (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.16 / (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.15: +1 -2 lines
Diff to previous 1.15 (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.15 / (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.14: +1 -2 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Thu Jan 25 18:35:30 2007 UTC (17 years, 3 months ago) by niallo
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

plug a memleak in keyword expansion.

ok joris@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 11 17:44:18 2007 UTC (17 years, 4 months ago) by niallo
Branch: MAIN
Changes since 1.12: +6 -5 lines
Diff to previous 1.12 (colored)

rework opencvs so that we can deal with binary files.  previously we assumed all files were ascii,
which broke things in real-world usage.  now a checkout of src should work, albeit using lots of
memory and cpu.  fixing this is the next step.

testing by many.
ok & some input joris@

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 7 01:53:12 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

zap-o-matic 2007:
- zap unused argument to cvs_exec()

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jan 3 14:08:09 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

bring back cvs_yesno() as is it going to be used pretty soon now.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 14 15:14:47 2006 UTC (17 years, 11 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Sun May 28 21:38:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.8: +1 -5 lines
Diff to previous 1.8 (colored)

make it look a little less chaotic.

Revision 1.8 / (download) - annotate - [select for diffs], Sun May 28 21:34:37 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

add code which allows us to select revisions based upon
a string given by the user on the command line, much like
rcs_revision_select in OpenRCS.

this will be usefull for some commands.

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 28 17:25:18 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

several fixes to the file api:
- default to CVS_FILE when something is totally unknown
- cvs_get_repository_path() now returns the full repository path for
  the given argument.
- cvs_get_repository_name() returns the contents of CVS/Repository
  to the caller.
- allow command callbacks to specify if our recursion code needs
  to skip the directory or not.
- when checking for a admin directory, make sure it is in fact
  a directory. if it is not we dont want to recurse inside.

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 27 16:18:23 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

boogie cvs_yesno() down the removal hatch, it is not used.

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 27 03:30:31 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.4: +4 -12 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Mon Mar 27 06:13:51 2006 UTC (18 years, 1 month ago) by pat
Branch: MAIN
Changes since 1.3: +8 -2 lines
Diff to previous 1.3 (colored)

Plug a memory leak for all cvs_strsplit call sites; ok xsa@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Mar 17 13:40:41 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

- Lint says cvs_hacktime() is not used in rcs, so move it into !RCSPROG.

ok xsa@

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 17 08:51:45 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

rlog_strsplit() -> cvs_strsplit() and move it to util.c so it can be reused
by `cvs log' and some other RCS utilities. "Looks good" ray@.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 15 19:59:36 2006 UTC (18 years, 2 months ago) by niallo
Branch: MAIN

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

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.