summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.h
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-06-01 20:00:53 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-06-01 20:00:53 +0000
commit91b2539f3bccc40a19757de24447e2354b98f1dd (patch)
tree39012707a6d654af0794262dc74b337a2dd43f2a /usr.bin/cvs/rcs.h
parent43c990ab0f3db918c8ea3707f821a4667127e554 (diff)
major rewrite of some rcs parsing stuff:
- rework rcs_getrev() to correctly support branches - rework rcs_translate_tag() to correctly translate given symbols or branches into their matching revisions - rework rcs_rev_add() to correctly update its 'next' pointers and insert the new revision in the correct place on the list. - rework rcs_head_get() to return the latest revision on the default branch if it has been set or the normal HEAD revision otherwise. - no longer access the rf_head member of the RCSFILE struct manually, use the rcs_head_get() function which correctly returns the HEAD revision, there might be a default branch that has to be used. - for now, when commiting a new revision reset the default branch.
Diffstat (limited to 'usr.bin/cvs/rcs.h')
-rw-r--r--usr.bin/cvs/rcs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h
index a69a4877072..c267536a4c1 100644
--- a/usr.bin/cvs/rcs.h
+++ b/usr.bin/cvs/rcs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.h,v 1.67 2006/05/31 18:26:14 joris Exp $ */
+/* $OpenBSD: rcs.h,v 1.68 2006/06/01 20:00:52 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -219,7 +219,7 @@ extern int rcs_errno;
RCSFILE *rcs_open(const char *, int, int, ...);
void rcs_close(RCSFILE *);
-const RCSNUM *rcs_head_get(RCSFILE *);
+RCSNUM *rcs_head_get(RCSFILE *);
int rcs_head_set(RCSFILE *, RCSNUM *);
const RCSNUM *rcs_branch_get(RCSFILE *);
int rcs_branch_set(RCSFILE *, const RCSNUM *);