summaryrefslogtreecommitdiff
path: root/devel/cvs
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>1999-05-25 17:52:25 +0000
committermycroft <mycroft@pkgsrc.org>1999-05-25 17:52:25 +0000
commitdb1683d6463392d788325b4b10823d45b1fba6af (patch)
tree500ad8520778c32c165bacf7e5cb398550845386 /devel/cvs
parent00c52a0f457b5ca7c55d07322b8256aad5fc3cbf (diff)
downloadpkgsrc-db1683d6463392d788325b4b10823d45b1fba6af.tar.gz
Fix an inconsistency between adding and removing files, with the revision
numbers passed to loginfo. If a file is re-added, make sure the `old' revision is `NONE', not the preceding dead revision.
Diffstat (limited to 'devel/cvs')
-rw-r--r--devel/cvs/patches/patch-au15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/cvs/patches/patch-au b/devel/cvs/patches/patch-au
new file mode 100644
index 00000000000..50e84ba50c6
--- /dev/null
+++ b/devel/cvs/patches/patch-au
@@ -0,0 +1,15 @@
+$NetBSD: patch-au,v 1.1 1999/05/25 17:52:25 mycroft Exp $
+
+--- src/commit.c.orig Thu Aug 6 20:04:11 1998
++++ src/commit.c Tue May 25 10:25:05 1999
+@@ -984,7 +984,9 @@
+ xmalloc (sizeof (struct logfile_info)));
+ li->type = status;
+ li->tag = xstrdup (vers->tag);
+- li->rev_old = xstrdup (vers->vn_rcs);
++ /* If the file was re-added, we want the revision in the commitlog
++ to be NONE, not the previous dead revision. */
++ li->rev_old = status == T_ADDED ? NULL : xstrdup (vers->vn_rcs);
+ li->rev_new = NULL;
+ p->data = (char *) li;
+ (void) addnode (ulist, p);