logo       

Re: adding on branch: msg#00216

Subject: Re: adding on branch
Paul Edwards wrote:
> What is the logic behind the fact that when you have a project
> checked out on a branch, and then you go:
>
> cvs add filename.c
> cvs commit -m "." filename.c
>
> it gets put into the Attic directory instead of the normal directory?

When you add on a branch, the head revision is dead, therefore, Attic.

> Is this because a checkout on the "head" would otherwise pick
> up this branch "automatically"/"accidentally"?

Just following the normal rules about whether something is in the Attic or
not.

> But when a subsequent "cvs add" is done, not on a branch, then
> it is taken out of the Attic

Well, the head revision is now alive, so the RCS file no longer belongs in
the Attic.

> (but unfortunately Attic is not removed -

I guess that wasn't considered important. Having an empty Attic doesn't hurt
anything.

> Ok, but an import is another way of adding a "head" version.
> So the import should also go through the same logic, moving a
> file out of the Attic and putting it into the normal spot,

No, if you import on top of a dead head revision, you get a conflict, as
expected, and then you merge, and the commit after that commits and alive
revision, causing the RCS file to move out of the Attic.



Max.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe