The Artima Developer Community
Sponsored Link

Java Buzz Forum
A Bit Of CVS Mystery

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
A Bit Of CVS Mystery Posted: Oct 30, 2005 7:01 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: A Bit Of CVS Mystery
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

I had to deal with a bit of CVS mystery at work last Friday (or this Friday depending on whether the week starts with a Sunday or a Monday and however the adjectives 'last,' 'this,' and 'next' work with days of the week—I'm still confused—anyway, it was two days ago) whereby messages such as the following is issued for an entire subdirectory structure:

[...]
cvs update: move away lib/asdf/qwer.cpp; it is in the way
C lib/asdf/qwer.cpp
cvs update: move away lib/asdf/qwer.h; it is in the way
C lib/asdf/qwer.h
[...]

This happened whenever I tried to update my workspace with my usual CVS command in the project directory:

[weiqi@gao] $ cvs -q -z9 up -dP

A simplified version of the project directory is as follows:

$project-dir/
  +-module-1/
  +-module-2/
  +-...
  +-module-n/
  +-bin/
  +-lib/

where module-1, ..., module-n contains sources and bin and lib contains compiled executables and dynamic link libraries respectively.

Naturally, the bin and lib directory are not in CVS, and we have a .cvsignore file under $project-dir that lists both directories to prevent CVS from printing out questions about files in these directories when I update.

Everything worked just fine until the CVS directory restructure. Under the new and improved plan, the lib directory and a subdirectory tree underneath it is added to CVS:

$project-dir/
  +-...
  +-lib/
    +-asdf/
    | +-...
    | +-qwer.cpp
    | +-qwer.h
    | +...
    +-zxcv/
    +-...

All of these is done somewhere else. All I have to do is to issue my CVS update command. My first try pulled down the new subdirectories and files. The conflicts happened on subsequent CVS updates.

As it turned out, my problem can be fixed by adding a line

D/lib////

to the $project-dir/CVS/Entries file, or by deleting the entire lib tree and redo CVS update.

But I still don't understand how my workspace got the way it was. Since my problem is solved, I'm not inclined to investigate (i.e., try to reproduce the weird situation) further.

Read: A Bit Of CVS Mystery

Topic: Live Java Jobs Aggregator Previous Topic   Next Topic Topic: This AJAX stuff might actually take off...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use