OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.53 / (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_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.52: +7 -7 lines
Diff to previous 1.52 (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.52 / (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.51: +2 -2 lines
Diff to previous 1.51 (colored)

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

OK millert@

Revision 1.51 / (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.50: +3 -2 lines
Diff to previous 1.50 (colored)

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

Revision 1.50 / (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.49: +8 -8 lines
Diff to previous 1.49 (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.49 / (download) - annotate - [select for diffs], Fri Jul 9 18:42:14 2010 UTC (13 years, 10 months ago) by zinovik
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
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

when opencvs is started with trace option `-t' it must print function it
enters, even if it was executed simultaneously with `-n' (no exec option).
cvs_unedit_local() does not conform that behaviour, so lets make it behave
like all other functions.

ok xsa@, stsp@

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jun 23 20:51:08 2008 UTC (15 years, 10 months ago) by ragge
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.47: +6 -6 lines
Diff to previous 1.47 (colored)

Some conformance fixes:
- Empty brackets forbidden in C99.
- ? : and skipping middle argument is both disallowed and considered bad
  programming habit.
OK ray@, xsa@.

Revision 1.47 / (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.46: +1 -2 lines
Diff to previous 1.46 (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.46 / (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.45: +8 -11 lines
Diff to previous 1.45 (colored)

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

ok joris

Revision 1.45 / (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.44: +2 -2 lines
Diff to previous 1.44 (colored)

spacing

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 6 12:42:46 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.43: +8 -3 lines
Diff to previous 1.43 (colored)

Sticky tags must have a 'T' in front of them in CVS/Entries.

OK joris@

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

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

OK joris@

Revision 1.42 / (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.41: +4 -4 lines
Diff to previous 1.41 (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.41 / (download) - annotate - [select for diffs], Mon Jan 28 20:31:07 2008 UTC (16 years, 3 months ago) by tobias
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored)

Properly handle -R -- although it is default, it may be overwritten mit -l
in front of it.

OK joris@, xsa@

> Diff from Igor Zinovik

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jan 10 10:08:22 2008 UTC (16 years, 4 months ago) by tobias
Branch: MAIN
Changes since 1.39: +4 -7 lines
Diff to previous 1.39 (colored)

another strcspn() round

Revision 1.39 / (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.38: +2 -5 lines
Diff to previous 1.38 (colored)

strcspn() change

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

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 24 22:06:28 2007 UTC (16 years, 7 months ago) by joris
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

oops i was suppose to pass cvs_directory_tag to cvs_file_classify().

Revision 1.37 / (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.36: +3 -3 lines
Diff to previous 1.36 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jul 1 10:43:13 2007 UTC (16 years, 10 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Sync time buffer size; missed in previous commit.

Revision 1.35 / (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.34: +3 -3 lines
Diff to previous 1.34 (colored)

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

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

general includes cleanup sweep. ok joris@ niallo@

Revision 1.33 / (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.32: +5 -7 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Fri Feb 9 03:49:15 2007 UTC (17 years, 3 months ago) by joris
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

remove the cvs_file_classify() `loud' argument, it was used
in the old school days and serves no purpose what so ever now.

otto@ mentioned this to me a while ago

Revision 1.31 / (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.30: +7 -14 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 25 11:09:21 2007 UTC (17 years, 3 months ago) by xsa
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

typo in error message.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jan 11 15:45:02 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.28: +36 -8 lines
Diff to previous 1.28 (colored)

update the revision number in CVS/Entries from CVS/Baserev if we
are reverting to the revision that the user edited in the first place.
ok joris@.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jan 11 08:09:55 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

sync joris' last change (connection to remote server when all options are
valid) for the unedit command too.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 11 02:35:55 2007 UTC (17 years, 4 months ago) by joris
Branch: MAIN
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

in a remote setup:
do not connect to the remote server until we are sure all the options
passed to the commands are valid.

noticed by xsa@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 10 21:32:19 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

add a cvs_file_copy routine and use it for the edit command to
copy the file in the current working directory to CVS/Base/
ok ray@ joris@.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 9 10:01:43 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

remove uneeded linebreak when creating the CVS/Notify
file with the edit command.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 8 13:21:21 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.23: +49 -30 lines
Diff to previous 1.23 (colored)

- simplify CVS/Baserev file parsing; makes unedit work better.
- add tracing messages in edit, unedit functions.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 6 17:09:08 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.22: +88 -4 lines
Diff to previous 1.22 (colored)

add cvs_base_handle() routine to handle the CVS/Baserev* files.
first bits for the edit command for now.
definitly still more work to do for optimization...

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 5 09:41:30 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.21: +5 -1 lines
Diff to previous 1.21 (colored)

for edit: create the CVS/Base directory if it does not already exist.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 5 09:32:49 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.20: +11 -5 lines
Diff to previous 1.20 (colored)

use current working directory fullpath for notifications.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jan 5 09:15:00 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.19: +11 -7 lines
Diff to previous 1.19 (colored)

correctly handle time in notifications.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jan 5 08:52:37 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.18: +11 -5 lines
Diff to previous 1.18 (colored)

use correct hostname for notifications.

also, in a near future, might be worth thinking about sharing
some code between the edit and unedit commands, would shrink
the mess a little bit...

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 5 08:37:55 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.17: +139 -1 lines
Diff to previous 1.17 (colored)

starting bits for the edit command. more to come.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 5 07:13:49 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.16: +10 -2 lines
Diff to previous 1.16 (colored)

- introduce file comparison routine, cvs_file_cmp().
- compare the <file> in working dir and the one in CVS/Base/<file>
  for the unedit command.
hints otto@, input and ok ray@ niallo@.

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

set permissions back on the file after it got copied from the
CVS/Base/ directory.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 2 14:51:18 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.14: +111 -2 lines
Diff to previous 1.14 (colored)

some unedit command bits; still work in progress for local mode.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 2 13:51:13 2007 UTC (17 years, 4 months ago) by xsa
Branch: MAIN
Changes since 1.13: +53 -147 lines
Diff to previous 1.13 (colored)

skeletons for the client-side part of the editors and watchers commands.
not linked to build.

Revision 1.13, Sat May 27 03:30:30 2006 UTC (17 years, 11 months ago) by joris
Branch: MAIN
Changes since 1.12: +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.12 / (download) - annotate - [select for diffs], Thu Mar 16 09:06:19 2006 UTC (18 years, 2 months ago) by xsa
Branch: MAIN
Changes since 1.11: +2 -13 lines
Diff to previous 1.11 (colored)

zap more unused variables.

Revision 1.11 / (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.10: +2 -10 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (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.9: +9 -21 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Mon Oct 10 17:51:53 2005 UTC (18 years, 7 months ago) by xsa
Branch: MAIN
Changes since 1.8: +61 -7 lines
Diff to previous 1.8 (colored)

- editors remote handler
- minor consistency tweaks

Revision 1.8 / (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.7: +4 -4 lines
Diff to previous 1.7 (colored)

KNF;

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 10 21:51:23 2005 UTC (18 years, 10 months ago) by joris
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)



zap unused variables;

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 31 10:54:05 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.5: +5 -1 lines
Diff to previous 1.5 (colored)

add some comments ..

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

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

Revision 1.4 / (download) - annotate - [select for diffs], Sat May 28 20:39:08 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored)

we do not use sysexits.h anymore, nuke it!

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 26 14:46:22 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

fix `editors' and `unedit' commands usage..

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 26 07:27:01 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

fix usage..

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 25 22:07:54 2005 UTC (18 years, 11 months ago) by jfb
Branch: MAIN

skeleton for the edit-related functions, not linked in yet

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.