Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets RCSMETALOG: symbolically tag the latest and pre...
details: https://anonhg.NetBSD.org/src/rev/e3c916ac09f0
branches: trunk
changeset: 762180:e3c916ac09f0
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Feb 17 08:41:35 2011 +0000
description:
RCSMETALOG: symbolically tag the latest and previous versions.
diffstat:
distrib/sets/metalog.subr | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 61a946afa689 -r e3c916ac09f0 distrib/sets/metalog.subr
--- a/distrib/sets/metalog.subr Thu Feb 17 08:09:10 2011 +0000
+++ b/distrib/sets/metalog.subr Thu Feb 17 08:41:35 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: metalog.subr,v 1.1 2011/02/16 05:18:35 uebayasi Exp $
+# $NetBSD: metalog.subr,v 1.2 2011/02/17 08:41:35 uebayasi Exp $
#
# xrcs add
@@ -14,6 +14,20 @@
xrcs_cur=
xrcs_new=
+xrcs_latest()
+{
+ rcslog -rlatest ${xrcs_cur} | \
+ sed -n '/^revision/ { s/^revision //; p; }'
+}
+
+xrcs_retag()
+{
+ previous=$( xrcs_latest 2>/dev/null )
+ if [ -n "$previous" ]; then
+ rcs -q -Nprevious: ${xrcs_cur}
+ fi
+}
+
xrcs_unlock()
{
rcs -q -u -U -M ${xrcs_cur}
@@ -21,7 +35,8 @@
xrcs_ci()
{
- ci -q -f -u -t-"$xrcs_descr" -m"$xrcs_msg" ${xrcs_cur}
+ xrcs_retag
+ ci -q -f -u -t-"$xrcs_descr" -m"$xrcs_msg" -Nlatest ${xrcs_cur}
rcs -q -kb -U ${xrcs_cur}
}
Home |
Main Index |
Thread Index |
Old Index