From a1bb03a63440878abb92e20895b4de31c3a68b6f Mon Sep 17 00:00:00 2001 From: joe Date: Sat, 8 Sep 2001 02:11:35 +0000 Subject: Add code to unexpand $FreeBSD: xxxx $ (or whatever is defined in the config file as being our $IDHEADER$) upon commit. This is useful to avoid a '+1 -1' delta against the version string. (Tested with both local and remote commits). --- CVSROOT/cfg.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CVSROOT/cfg.pm') diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm index 7100779cc556..6816197d2993 100755 --- a/CVSROOT/cfg.pm +++ b/CVSROOT/cfg.pm @@ -12,7 +12,7 @@ package cfg; use strict; use vars qw($DEBUG $FILE_PREFIX $MAILADDRS $MAILBANNER $MAILCMD $MAIL_ON_DIR_CREATION $TMPDIR %TEMPLATE_HEADERS - $LAST_FILE $PID $IDHEADER); + $LAST_FILE $PID $IDHEADER $UNEXPAND_RCSID); ###################### @@ -69,6 +69,11 @@ $LAST_FILE = "$TMPDIR/$FILE_PREFIX.lastdir"; # own ident header. $IDHEADER = 'FreeBSD'; # Our RCS header is '$ FreeBSD $', +# Contract any instances of $IDHEADER in the source file before committing. +# This is useful because it means that expanded headers aren't stored in +# the repository as part of the delta. +$UNEXPAND_RCSID = 0; + #################### ### log_accum.pl ### -- cgit