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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-28-2005, 02:21 AM
|
#1
|
Member
Registered: Dec 2004
Posts: 73
Rep:
|
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
|
|
|
02-28-2005, 03:06 AM
|
#2
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
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
|
|
|
02-28-2005, 03:35 AM
|
#3
|
Member
Registered: Dec 2004
Posts: 73
Original Poster
Rep:
|
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
|
|
|
02-28-2005, 04:28 AM
|
#4
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
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
|
|
|
02-28-2005, 04:36 AM
|
#5
|
Member
Registered: Dec 2004
Posts: 73
Original Poster
Rep:
|
Thanks a lot, the line
export VISUAL="nano"
solved my problem
Leonid
|
|
|
All times are GMT -5. The time now is 12:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|