LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-28-2005, 01:21 AM   #1
leonidg
Member
 
Registered: Dec 2004
Posts: 73

Rep: Reputation: 15
cvs revision problem


Hello,
I am using cvs with my project.
When I first imported the files they got start revision 1.1.1.1
Then each commit of a new file, I get new revision for it: 1.2, 1.3 ... 1.i
No I want to declare a new version of my program: 2.0 for all files for example.
I have tried the command from the manual:
cvs commit -r3.0
but it just shows me a list of all my files in the project and does not proceed.
Any ideas which command or maybe Koqueror option would do what I need.
Thanks in Advance,
Leonid
 
Old 02-28-2005, 02:06 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
cvs commit -r 3.0 should set the revision tag to 3.0 for all files and commit them. You should be prompted with the usual editor window, listing the changed files, expecting you to add a commit comment at the bottom of the list.

It sounds like you're doing the right thing - just scroll down and add a comment - something like "Bumped all files to 3.0 release" (or whatever you want). Save the file and exit the editor and you should see the files being commited.


Håkan
 
Old 02-28-2005, 02:35 AM   #3
leonidg
Member
 
Registered: Dec 2004
Posts: 73

Original Poster
Rep: Reputation: 15
hw-tph, thanks for your reply.
I run that command in terminal, and when I get the list there are little options I can do, I cannot type anything, but sometimes when I press some keys it does something, I just don't know the meaning of all keys, I can check it again to be more specific if You need.
Thanks a lot,
Leonid
 
Old 02-28-2005, 03:28 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You are most likely presented with the vi or vim editor. It takes some reading and getting used to but it's usually worth it in the long run. You do have a couple of options:

- The editor that is used for entering commit information when using cvs is controlled by a couple of environment variables, $VISUAL, $EDITOR and $CVSEDITOR. Setting any of these to the editor you would like to use would probably work, say export VISUAL="nano" (nano is a far more simple editor than vi/vim) and then do your commit.

- You could use the -m option to automatically pass the commit message, bypassing the editor step: cvs commit -r 3.0 -m "Updated all files to 3.0 release + cleanup of old references" would probably do what you want to do. I prefer doing it with the editor though, where I can see what files have changed before actually commenting on the changes. It's my personal preference and it works either way.

There are probably other ways of doing this but these are the two I came to think of right off of the top of my head. Oh, and if you want to learn vim, try typing vimtutor at the shell prompt. The vimtutor script is included with most distributions that ship with vim.

Hope that helps.


Håkan
 
Old 02-28-2005, 03:36 AM   #5
leonidg
Member
 
Registered: Dec 2004
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks a lot, the line
export VISUAL="nano"
solved my problem
Leonid
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Revision Thread. rvijay Linux - General 5 12-01-2005 02:35 AM
Kdevelop and revision control cuzzle Linux - Software 1 11-15-2005 04:57 PM
Router revision DaBlade Linux - Hardware 3 10-31-2005 08:35 AM
LPIC1 revision tip iainr Linux - Certification 2 04-22-2004 03:02 AM
PCI revision 2.2 problem nathan_levy Linux - Hardware 0 04-12-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration