bug-cvs
[Top][All Lists]
Advanced

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

[bug #23370] cvs watch will be wrongly cleared by cvs co by the same use


From: Peter Toft
Subject: [bug #23370] cvs watch will be wrongly cleared by cvs co by the same user
Date: Mon, 26 May 2008 22:26:44 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080419 Ubuntu/8.04 (hardy) Firefox/2.0.0.14

URL:
  <http://savannah.nongnu.org/bugs/?23370>

                 Summary: cvs watch will be wrongly cleared by cvs co by the
same user
                 Project: Concurrent Versions System
            Submitted by: petoft
            Submitted on: Monday 05/26/2008 at 22:26
                Category: Bug Report
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
           Fixed Release: None
   Fixed Feature Release: None

    _______________________________________________________

Details:

In the example below I will demonstrate that the cvs "locks" functionality
will be wrongly cleared by CVS version 1.12.13, when the same user who did the
lock (using cvs edit) later does a "cvs checkout" or "cvs export".

Since such additional "cvs export" operations easily can be a part of daily
operations it is a very destructive bug in CVS. Especially problematic it is
for non-mergeable files, when a multi-site CVS work group is using "cvs watch
on+cvs edit" to signal, who is working where.

Operations as user "pto" who makes a watch+edit 
-----------------------------------------------
$ cvs checkout my_proj
... lots of check out lines...
$ cd my_proj
$ cvs watch on README.txt
$ rm README.txt
$ cvs update README.txt
$ ls -l README.txt
-r-r--r-- 1 pto pto 6 2008-05-26 23:41 README.txt
$ cvs editors README.txt  # No files will be shown since no files are locked
$ cvs edit README.txt     
$ cvs editors README.txt  # Good I can see pto is locking "README.txt"
README.txt    pto        Wed May  7 06:43:15 2008 -0000 myworkstation   
/opt/cvsroot/my_proj
                          
Operations as another user "joe"
--------------------------
$ cvs checkout my_proj
$ cd my_proj
$ cvs editors README.txt
README.txt    pto        Wed May  7 06:43:15 2008 -0000 myworkstation   
/opt/cvsroot/my_proj
                          # Good I can see pto is locking "README.txt" - no
problems


Operations as user "pto"
--------------------------
$ mkdir MY_SECRET_PLACE_OR_SOMEWHERE_ELSE
$ cd MY_SECRET_PLACE_OR_SOMEWHERE_ELSE
$ cvs checkout my_proj
$ cd my_proj
$ cvs editors README.txt
                          # WHAT THE... ??? - the lock on my_proj/README.txt
is gone.... :-((


Note that the same problem exist when you replace the
second "cvs checkout" with "cvs export"

In the example above after "cvs edit README.txt" both
$CVSROOT/my_proj/CVS/fileattr and my_proj/CVS/Baserev show that
the file is being edited, after doing another cvs co
$CVSROOT/my_proj/CVS/fileattr does not show the file being edited
anymore but my_proj/CVS/Baserev does -> thus we have a mismatch.


Change wish:
------------
The "correct" operation by CVS would be NOT to clear the CVS locks, when
doing more than one "cvs co" or "cvs export" by the same user.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?23370>

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





reply via email to

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