aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT/cfg.pm
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-09-08 10:11:35 +0800
committerjoe <joe@FreeBSD.org>2001-09-08 10:11:35 +0800
commita1bb03a63440878abb92e20895b4de31c3a68b6f (patch)
tree5b51cb863cc93d006c88b60385567af4cd36f7a2 /CVSROOT/cfg.pm
parentf0637c9a3553c3b3a4acb1801e78ec865456faf9 (diff)
downloadfreebsd-ports-gnome-a1bb03a63440878abb92e20895b4de31c3a68b6f.tar.gz
freebsd-ports-gnome-a1bb03a63440878abb92e20895b4de31c3a68b6f.tar.zst
freebsd-ports-gnome-a1bb03a63440878abb92e20895b4de31c3a68b6f.zip
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).
Diffstat (limited to 'CVSROOT/cfg.pm')
-rwxr-xr-xCVSROOT/cfg.pm7
1 files changed, 6 insertions, 1 deletions
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 ###