[14348] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 8.0A: rcs

daemon@ATHENA.MIT.EDU (Derek Atkins)
Thu May 16 14:01:53 1996

To: bugs@MIT.EDU
Date: Thu, 16 May 1996 14:01:25 EDT
From: Derek Atkins <warlord@MIT.EDU>

System name:		bart-savagewood
Type and version:	SPARC/Classic 8.0A (1 update(s) to same version)
Display type:		cgthree

What were you trying to do?

	Set a symbolic RCS tag to bunch of RCS files, following the
man page instructions to set a symbolic name to the current latest
revision.

What's wrong:

	The man page told me to do one thing but when I did it rcs
gave me an error.  When I run rcs from the watchmaker locker, however,
it works.

What should have happened:

	RCS shouldn't have given me an error when trying to follow
examples in the man page.  It should have set the symbolic name rather
than attempt to delete it.

Please describe any relevant documentation references:

from rcs(1):

     -nname[:[rev]]
          Associate the symbolic name name with the branch or
          revision rev.  Delete the symbolic name if both : and
          rev are omitted; otherwise, print an error message if
          name is already associated with another number.  If rev
          is symbolic, it is expanded before association.  A rev
          consisting of a branch number followed by a . stands
          for the current latest revision in the branch.  A :
          with an empty rev stands for the current latest revi-
          sion on the default branch, normally the trunk.  For
 
Printed 12/22/91           1991/09/26                           2
 
RCS(1)              UNIX Programmer's Manual               RCS(1)
 
          example, rcs -nname: RCS/* associates name with the
          current latest revision of all the named RCS files;
          this contrasts with rcs -nname:$ RCS/* which associates
          name with the revision numbers extracted from keyword
          strings in the corresponding working files.


When I try to follow the instructions to set a symbolic name with the
current latest revision of the default branch, rcs -nname: RCS/*:

(bart-savagewood-warlord) in /tmp/test
Ready> where rcs
/usr/athena/bin/rcs
/mit/watchmaker/sun4bin/rcs
(bart-savagewood-warlord) in /tmp/test
Ready> ls RCS/*
-r--r--r--   1 warlord  101          234 May 16 13:54 RCS/foo,v
(bart-savagewood-warlord) in /tmp/test
Ready> head RCS/foo,v 
head     1.1;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;
 
 
1.1
date     96.05.16.13.54.19;  author warlord;  state Exp;
(bart-savagewood-warlord) in /tmp/test
Ready> rcs -nname: RCS/*
RCS file: RCS/foo,v
rcs warning: can't delete nonexisting symbol name
done
(bart-savagewood-warlord) in /tmp/test
Ready>

However, when I use the rcs in the watchmaker locker, it works:

(bart-savagewood-warlord) in /tmp/test
Ready> /mit/watchmaker/sun4bin/rcs -nname: RCS/*
RCS file: RCS/foo,v
done
(bart-savagewood-warlord) in /tmp/test
Ready> head RCS/foo,v
head    1.1;
access;
symbols
        name:1.1;
locks; strict;
comment @# @;
 
 
1.1
date    96.05.16.13.54.19;      author warlord; state Exp;
(bart-savagewood-warlord) in /tmp/test
Ready>

-derek

home help back first fref pref prev next nref lref last post