LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-01-2008, 04:54 PM   #1
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
CVS - How to delete code permanently?


Hello everyone,

I'm having a series of problems with my first attempt of using CVS.

I read manuals but still couldn't quite get a grip on the thing so after many disastrous uses I got the thing going. The point is that by now I have 2 branches in my code. One good, everything in order and a second one with unnecessary files and completely redundant with the existence of the second, good and improved, branch.
My question is: how can I delete that branch and all the files inside of it?

thank you in advance.

Francisco

P.S.: I've been googling for some time and I either don't know what to search for or I really can't see the solution even though it's in front of me.
 
Old 05-01-2008, 08:21 PM   #2
cyberfishee
Member
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Rep: Reputation: 15
I am not sure about CVS, but in SVN, it is extremely hard/impossible to delete files entirely, since the purpose of version control is to keep every version, and you are trying to modify history =).
 
Old 05-01-2008, 10:21 PM   #3
rg.viza
Member
 
Registered: Aug 2006
Posts: 73

Rep: Reputation: 15
Quote:
Originally Posted by frandalla View Post
Hello everyone,

I'm having a series of problems with my first attempt of using CVS.

I read manuals but still couldn't quite get a grip on the thing so after many disastrous uses I got the thing going. The point is that by now I have 2 branches in my code. One good, everything in order and a second one with unnecessary files and completely redundant with the existence of the second, good and improved, branch.
My question is: how can I delete that branch and all the files inside of it?

thank you in advance.

Francisco

P.S.: I've been googling for some time and I either don't know what to search for or I really can't see the solution even though it's in front of me.
Get the Oreilly book.

I'd just rename the directory CVS_HOME is pointing to [directory name].bak, create a new directory to replace it, and reimport my code. Much simpler. You can get the commands you used to create the repository from:
$ grep cvs ~/.bash_history

I don't know if I'd worry too much about cvs. Definitely get the book because it's great if you need to figure something out. It's possible that git may end up taking over that world. It solves a lot of cvs's problems because it's fundamentally different, where SVN isn't. cvs is still used in a *lot* of places tho. For some people/companies it works very well and they'll be using it forever.

I've used git as a user to get the wine source and apply my patches (from various developers) and it's very nice.

Linus Torvalds is using (and wrote it) it for the kernel project to substitute for bitkeeper. 8)

Since you aren't too invested in cvs, this would be a good time to check them all out and see if you like one type or another better. They use cvs where I work unfortunately lol.

I'm planning on using git for my next project at home tho.

-Viz
 
Old 05-01-2008, 10:25 PM   #4
cyberfishee
Member
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Rep: Reputation: 15
Quote:
I'd just rename the directory CVS_HOME is pointing to [directory name].bak, create a new directory to replace it, and reimport my code. Much simpler. You can get the commands you used to create the repository from:
$ grep cvs ~/.bash_history
Except that way you lose all your history, which is what versioning is all about.
 
Old 05-02-2008, 04:47 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,518
Blog Entries: 51

Rep: Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598
OK, so you can't delete files easily unless you're the CVS admin, but at least you can remove that named branch tag with 'cvs -d rtag badbranchname projectname', right?
 
Old 05-26-2008, 09:31 PM   #6
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Original Poster
Rep: Reputation: 37
Hello everyone,

I'm having a series of problems with my first attempt of using CVS.

I read manuals but still couldn't quite get a grip on the thing so after many disastrous uses I got the thing going. The point is that by now I have 2 branches in my code. One good, everything in order and a second one with unnecessary files and completely redundant with the existence of the second, good and improved, branch.
My question is: how can I delete that branch and all the files inside of it?

thank you in advance.

Francisco

P.S.: I've been googling for some time and I either don't know what to search for or I really can't see the solution even though it's in front of me.
 
  


Reply

Tags
branch, cvs, remove


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete a branch in CVS aarajthomas Linux - Software 1 04-05-2007 04:25 PM
Delete a branch in CVS aarajthomas Linux - Software 0 04-05-2007 05:57 AM
download source code of one parket with cvs kernelvn *BSD 8 06-21-2005 04:47 PM
lfs-cvs: cannot delete /tools koodailar Linux - Software 1 07-20-2004 08:06 PM


All times are GMT -5. The time now is 08:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration