From c91406620cbf11dd9293ac52d6ee55f3dcf2a5fd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 27 Dec 2003 08:18:42 +0000 Subject: [PATCH] (rlog_options): Append -rbranchtag if CVS/Tag indicates a tag, and if the user has not specified an rlog option. Adapted from a suggestion by Martin Stjernholm in . (Copyright): Update to 2003. --- lib-src/ChangeLog | 10 +++++++++- lib-src/rcs2log | 26 +++++++++++++++++++++----- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 1a0774e7e5..542761fda2 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,11 @@ +2003-12-27 Paul Eggert + + * rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates + a tag, and if the user has not specified an rlog option. + Adapted from a suggestion by Martin Stjernholm in + . + (Copyright): Update to 2003. + 2003-12-24 Thien-Thi Nguyen * make-docfile.c (main): For return code, no longer special-case VMS. @@ -5461,7 +5469,7 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker ;; coding: iso-2022-7bit ;; End: - Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002 + Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted provided the copyright notice and this notice are preserved. diff --git a/lib-src/rcs2log b/lib-src/rcs2log index 86a3f6722c..9528e6b1d9 100755 --- a/lib-src/rcs2log +++ b/lib-src/rcs2log @@ -29,9 +29,9 @@ Options: Report bugs to .' -Id='$Id: rcs2log,v 1.50 2002/02/03 17:31:31 eggert Exp $' +Id='$Id: rcs2log,v 1.51 2003/09/01 15:45:03 miles Exp $' -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -49,7 +49,7 @@ Id='$Id: rcs2log,v 1.50 2002/02/03 17:31:31 eggert Exp $' # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. -Copyright='Copyright (C) 2002 Free Software Foundation, Inc. +Copyright='Copyright (C) 2003 Free Software Foundation, Inc. This program comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of this program under the terms of the GNU General Public License. @@ -195,8 +195,9 @@ case $rlogfile in # If no rlog options are given, # log the revisions checked in since the first ChangeLog entry. - # Since ChangeLog is only by date, some of these revisions may be duplicates of - # what's already in ChangeLog; it's the user's responsibility to remove them. + # Since ChangeLog is only by date, some of these revisions may be + # duplicates of what's already in ChangeLog; it's the user's + # responsibility to remove them. case $rlog_options in '') if test -s "$changelog" @@ -281,6 +282,21 @@ case $rlogfile in esac done + # If no rlog options are given, and if we are in a tagged CVS branch, + # log only the changes in that branch. + case $rlog_options in + '') + if test -f CVS/Tag + then + CVSTAG=`cat &2 "$0: invalid CVS/Tag"; exit 1;; + esac + fi;; + esac fi # Use $rlog's -zLT option, if $rlog supports it. -- 2.20.1