diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 10 | ||||
| -rwxr-xr-x | lib-src/rcs2log | 26 |
2 files changed, 30 insertions, 6 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 1a0774e7e57..542761fda2f 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2003-12-27 Paul Eggert <eggert@twinsun.com> | ||
| 2 | |||
| 3 | * rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates | ||
| 4 | a tag, and if the user has not specified an rlog option. | ||
| 5 | Adapted from a suggestion by Martin Stjernholm in | ||
| 6 | <http://mail.gnu.org/archive/html/bug-gnu-emacs/2003-07/msg00066.html>. | ||
| 7 | (Copyright): Update to 2003. | ||
| 8 | |||
| 1 | 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org> | 9 | 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org> |
| 2 | 10 | ||
| 3 | * make-docfile.c (main): For return code, no longer special-case VMS. | 11 | * 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 <voelker@cs.washington.edu> | |||
| 5461 | ;; coding: iso-2022-7bit | 5469 | ;; coding: iso-2022-7bit |
| 5462 | ;; End: | 5470 | ;; End: |
| 5463 | 5471 | ||
| 5464 | Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002 | 5472 | Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003 |
| 5465 | Free Software Foundation, Inc. | 5473 | Free Software Foundation, Inc. |
| 5466 | Copying and distribution of this file, with or without modification, | 5474 | Copying and distribution of this file, with or without modification, |
| 5467 | are permitted provided the copyright notice and this notice are preserved. | 5475 | are permitted provided the copyright notice and this notice are preserved. |
diff --git a/lib-src/rcs2log b/lib-src/rcs2log index f3773e48766..4400fb72578 100755 --- a/lib-src/rcs2log +++ b/lib-src/rcs2log | |||
| @@ -29,9 +29,9 @@ Options: | |||
| 29 | 29 | ||
| 30 | Report bugs to <bug-gnu-emacs@gnu.org>.' | 30 | Report bugs to <bug-gnu-emacs@gnu.org>.' |
| 31 | 31 | ||
| 32 | Id='$Id: rcs2log,v 1.51 2003/09/01 15:45:03 miles Exp $' | 32 | Id='$Id: rcs2log,v 1.52 2003/12/27 08:18:08 uid65632 Exp $' |
| 33 | 33 | ||
| 34 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002 | 34 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003 |
| 35 | # Free Software Foundation, Inc. | 35 | # Free Software Foundation, Inc. |
| 36 | 36 | ||
| 37 | # This program is free software; you can redistribute it and/or modify | 37 | # This program is free software; you can redistribute it and/or modify |
| @@ -49,7 +49,7 @@ Id='$Id: rcs2log,v 1.51 2003/09/01 15:45:03 miles Exp $' | |||
| 49 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 49 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 50 | # Boston, MA 02111-1307, USA. | 50 | # Boston, MA 02111-1307, USA. |
| 51 | 51 | ||
| 52 | Copyright='Copyright (C) 2002 Free Software Foundation, Inc. | 52 | Copyright='Copyright (C) 2003 Free Software Foundation, Inc. |
| 53 | This program comes with NO WARRANTY, to the extent permitted by law. | 53 | This program comes with NO WARRANTY, to the extent permitted by law. |
| 54 | You may redistribute copies of this program | 54 | You may redistribute copies of this program |
| 55 | under the terms of the GNU General Public License. | 55 | under the terms of the GNU General Public License. |
| @@ -195,8 +195,9 @@ case $rlogfile in | |||
| 195 | 195 | ||
| 196 | # If no rlog options are given, | 196 | # If no rlog options are given, |
| 197 | # log the revisions checked in since the first ChangeLog entry. | 197 | # log the revisions checked in since the first ChangeLog entry. |
| 198 | # Since ChangeLog is only by date, some of these revisions may be duplicates of | 198 | # Since ChangeLog is only by date, some of these revisions may be |
| 199 | # what's already in ChangeLog; it's the user's responsibility to remove them. | 199 | # duplicates of what's already in ChangeLog; it's the user's |
| 200 | # responsibility to remove them. | ||
| 200 | case $rlog_options in | 201 | case $rlog_options in |
| 201 | '') | 202 | '') |
| 202 | if test -s "$changelog" | 203 | if test -s "$changelog" |
| @@ -281,6 +282,21 @@ case $rlogfile in | |||
| 281 | esac | 282 | esac |
| 282 | done | 283 | done |
| 283 | 284 | ||
| 285 | # If no rlog options are given, and if we are in a tagged CVS branch, | ||
| 286 | # log only the changes in that branch. | ||
| 287 | case $rlog_options in | ||
| 288 | '') | ||
| 289 | if test -f CVS/Tag | ||
| 290 | then | ||
| 291 | CVSTAG=`cat <CVS/Tag` || exit | ||
| 292 | case $CVSTAG in | ||
| 293 | T?*) | ||
| 294 | rlog_options=-r`expr "$CVSTAG" : 'T\(.*\)'`;; | ||
| 295 | *) | ||
| 296 | echo >&2 "$0: invalid CVS/Tag"; exit 1;; | ||
| 297 | esac | ||
| 298 | fi;; | ||
| 299 | esac | ||
| 284 | fi | 300 | fi |
| 285 | 301 | ||
| 286 | # Use $rlog's -zLT option, if $rlog supports it. | 302 | # Use $rlog's -zLT option, if $rlog supports it. |