bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #15411] Removing a file on a branch reports it as being removed on


From: anonymous
Subject: [bug #15411] Removing a file on a branch reports it as being removed on the head in cvs history
Date: Mon, 9 Jan 2006 17:42:05 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15411>

                 Summary: Removing a file on a branch reports it as being
removed on the head in cvs history
                 Project: Concurrent Versions System
            Submitted by: None
            Submitted on: Mon 01/09/06 at 17:42
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: 
           Fixed Release: None
   Fixed Feature Release: None

    _______________________________________________________

Details:

If I remove a file on a branch, cvs history shows R and the version of the
latest version on the trunk - not the revision removed on the branch.

Example transcript:

address@hidden:/tmp/cvs-wd/branch/test$ cvs --version

Concurrent Versions System (CVS) 1.11.21 (client/server)

Copyright (C) 2005 Free Software Foundation, Inc.

Senior active maintainers include Larry Jones, Derek R. Price,
and Mark D. Baushke.  Please see the AUTHORS and README files from the CVS
distribution kit for a complete list of contributors and copyrights.

CVS may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the CVS distribution kit.

Specify the --help option for further information about CVS
address@hidden:~$ cd /tmp
address@hidden:/tmp$ mkdir cvs-repo
address@hidden:/tmp$ cd cvs-repo/
address@hidden:/tmp/cvs-repo$ CVSROOT=`pwd`
address@hidden:/tmp/cvs-repo$ cvs init
address@hidden:/tmp/cvs-repo$ mkdir test
address@hidden:/tmp/cvs-repo$ cd ..
address@hidden:/tmp$ mkdir cvs-wd
address@hidden:/tmp$ cd cvs-wd
address@hidden:/tmp/cvs-wd$ cvs co test
cvs checkout: Updating test
address@hidden:/tmp/cvs-wd$ cd test/
address@hidden:/tmp/cvs-wd/test$ cvs
address@hidden:/tmp/cvs-wd/test$ echo main-1 > file
address@hidden:/tmp/cvs-wd/test$ cvs add file
cvs add: scheduling file `file' for addition
cvs add: use 'cvs commit' to add this file permanently
address@hidden:/tmp/cvs-wd/test$ cvs ci -m 'Main 1' file
RCS file: /tmp/cvs-repo/test/file,v
done
Checking in file;
/tmp/cvs-repo/test/file,v  <--  file
initial revision: 1.1
done
address@hidden:/tmp/cvs-wd/test$ cvs tag -b branch file
T file
address@hidden:/tmp/cvs-wd/test$ echo main-2 > file
address@hidden:/tmp/cvs-wd/test$ cvs ci -m "Main 2" file
Checking in file;
/tmp/cvs-repo/test/file,v  <--  file
new revision: 1.2; previous revision: 1.1
done
address@hidden:/tmp/cvs-wd/test$ cd ..
address@hidden:/tmp/cvs-wd$ mkdir branch
address@hidden:/tmp/cvs-wd$ cd branch/
address@hidden:/tmp/cvs-wd/branch$ cvs co -rbranch test
cvs checkout: Updating test
U test/file
cd address@hidden:/tmp/cvs-wd/branch$ cd test
address@hidden:/tmp/cvs-wd/branch/test$ echo 'branch-1' > file
address@hidden:/tmp/cvs-wd/branch/test$ cvs ci -m "Branch 1"
cvs commit: Examining .
Checking in file;
/tmp/cvs-repo/test/file,v  <--  file
new revision: 1.1.2.1; previous revision: 1.1
done
address@hidden:/tmp/cvs-wd/branch/test$ cvs remove -f file
cvs remove: scheduling `file' for removal
cvs remove: use 'cvs commit' to remove this file permanently
address@hidden:/tmp/cvs-wd/branch/test$ cvs ci -m "Branch dead"
cvs commit: Examining .
Removing file;
/tmp/cvs-repo/test/file,v  <--  file
new revision: delete; previous revision: 1.1.2.1
done
address@hidden:/tmp/cvs-wd/branch/test$ cvs history
O 2006-01-09 17:32 +0000 cr [branch] test =test= /tmp/cvs-wd/branch/*
address@hidden:/tmp/cvs-wd/branch/test$ cvs history -a
O 2006-01-09 17:32 +0000 cr [branch] test =test= /tmp/cvs-wd/branch/*
address@hidden:/tmp/cvs-wd/branch/test$ cvs history -e
O 2006-01-09 17:31 +0000 cr test =test= /tmp/cvs-wd/*
A 2006-01-09 17:31 +0000 cr 1.1     file test == /tmp/cvs-wd/test
M 2006-01-09 17:32 +0000 cr 1.2     file test == /tmp/cvs-wd/test
O 2006-01-09 17:32 +0000 cr [branch] test =test= /tmp/cvs-wd/branch/*
M 2006-01-09 17:32 +0000 cr 1.1.2.1 file test == /tmp/cvs-wd/branch/test
R 2006-01-09 17:32 +0000 cr 1.2     file test == /tmp/cvs-wd/branch/test


Note the last line of history - it says we removed v1.2 of test/file, while
cvs log of file shows that 1.2 is alive:

address@hidden:/tmp/cvs-wd/branch/test$ cvs log file

RCS file: /tmp/cvs-repo/test/file,v
Working file: file
head: 1.2
branch:
locks: strict
access list:
symbolic names:
        branch: 1.1.0.2
keyword substitution: kv
total revisions: 4;     selected revisions: 4
description:
----------------------------
revision 1.2
date: 2006/01/09 17:32:12;  author: cr;  state: Exp;  lines: +1 -1
Main 2
----------------------------
revision 1.1
date: 2006/01/09 17:31:28;  author: cr;  state: Exp;
branches:  1.1.2;
Main 1
----------------------------
revision 1.1.2.2
date: 2006/01/09 17:32:52;  author: cr;  state: dead;  lines: +0 -0
Branch dead
----------------------------
revision 1.1.2.1
date: 2006/01/09 17:32:42;  author: cr;  state: Exp;  lines: +1 -1
Branch 1
=============================================================================

- Chris Reed (address@hidden)






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15411>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]