delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/20/11:11:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <EB4453D77AC5D21187BD0000F831173C02AB8A@STARGATE>
From: "BRETECHER P.Y." <PIERRE-YVES_BRETECHER AT SODERN DOT fr>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Cc: "Mick Carter (Adresse de messagerie)" <mick DOT carter AT tesco DOT net>
Subject: RCS 5.7-3 keyword expansion issue
Date: Tue, 20 Aug 2002 17:08:57 +0200
MIME-Version: 1.0

Hi everybody

I found something strange with the keyword expansion feature of RCS 5.7-3
regarding the location of files :

Let's consider the following file (just made of the RCS header) :
--==========================================================================
====
-- RCS Header:
--   File         [$Source$]
--   Revision     [$Revision$]     Named [$Name$]
--   Last checkin [$Date$]
--   Author       [$Author$]
--==========================================================================
====

if I perform the following co operation :

co -rhead#main P:/SRCE_WD/ESSAI/main/titi G:/SRCE_Archive/ESSAI/titi,v

with the RCSINIT variable set to : RCSINIT=-x,v/
where P: is a local drive and G: a network drive,
the resulting checked out file looks like this :
--==========================================================================
====
-- RCS Header:
--   File         [$Source:
/cygdrive/p/SRCE_WD/ESSAI/main/G:/SRCE_Archive/ESSAI/titi,v $]
--   Revision     [$Revision: 1.1 $]     Named [$Name: head#main $]
--   Last checkin [$Date: 2002/08/20 12:20:03 $]
--   Author       [$Author: frso143 $]
--==========================================================================
====

Here we can see that the expanded source path is not correct (should be
G:/SRCE_Archive/ESSAI/titi,v) because it contains a part of the local
working file path (/cygdrive/p/SRCE_WD/ESSAI/main/).

If I change the co command in order to use UNC path for the archive file,
things get better :

co -rhead#main P:/SRCE_WD/ESSAI/main/titi
//SIRIUS/frso143/SRCE_Archive/ESSAI/titi,v

leads to

--==========================================================================
====
-- RCS Header:
--   File         [$Source: //SIRIUS/frso143/SRCE_Archive/ESSAI/titi,v$]
--   Revision     [$Revision: 1.1 $]     Named [$Name: head#main $]
--   Last checkin [$Date: 2002/08/20 12:20:03 $]
--   Author       [$Author: frso143 $]
--==========================================================================
====

Which is the good result.

The problem seems to be limited to keyword expansion, other RCS features
seems OK.

Any ideas ?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019