[Top][All Lists]

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

Re: Renaming directory in repository--questions

From: Matthew Riechers
Subject: Re: Renaming directory in repository--questions
Date: Tue, 03 Jul 2001 08:21:20 -0400

Anita Chacko wrote:
> Hi
> I have a question regarding moving files.
> I want to rename a directory;so for this,I need to
> move all files to the new directory,cvs remove from
> old directory,cvs add from new directory and commit.
> I want to re-name mmf to mmf_VT.
> So I created mmf_VT,added it to rep,mv Readme from mmf
> to mmf_VT and then committed it as revision 1.2(since
> it was 1.1 before),with the same name as before.
> When I do cvs log on the new Readme in mmf_VT,I only
> see 1.2 not 1.1.So where does it preserve the history
> of what was done?

In the history file, and in the log messages (hopefully ;)

> When I do log from mmf in my working directory,I see
> the history before removing it.How do I get the whole
> history by the cvs log command?

You have to log both files.

> Even if I checkout
> Readme,it still shows only part of the history.
> Pls help as I am very confused.Did I do anything wrong
> in moving the file?I followed the manual for this.
> Thanks for any advice,
> Anita Chacko

You didn't do anything wrong. CVS thinks it's a new file, so it starts
at 1.1, or in this case whatever you tell it. Everything before that
point only exists in the previous file.

If you *really* want the whole log intact, the easiest thing to do in
this case is just rename the directory in the repository. Make
absolutely sure everyone's sandbox is up-to-date and the repo is locked
down before playing :) Changing directory names or even filenames is
usually not a big deal, as long as everyone is in sync. The problem is
that CVS can't record those types of changes in the history w/o going
through the "real" cvs commands.


reply via email to

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