enrii.blog

A passionate programmer’s findings in the world of internet.

Setup CVSNT for Personal Use

June 21st, 2007

After developed a small system, I find it hard to keep track all versions of my source files, especially when there are bug fixes and enhancement requests. I have to create a whole new folder to keep track all changes in the past to allow me rollback to a specific version that I need. I'm sure there are version control system that could help me. In my day work, my company is using SCCS/CSSC but it requires Linux environment.

I asked my friends who do programming in Windows environment for suggestions. Most of them confirmed that CVSNT is the thing I need.

There are lots of good and detail guide out there to setup CVSNT, but I there is none that is simple and straight forward, or it's probably too complicated for my simple mind. Let me try to put up a simple guide, with my own experience.

Installation

Download the latest version of CVSNT (look for free version) and install it. Use typical settings. Restart PC.

Add Repository

Open up "CVSNT Server" in control panel. Stop the CVSNT Service. You may leave the Lock Service running.

CVSNT Control Panel

Then, go to "Repository Configuration" tab. Click "Add". Select a location that will serves as the repository for your source files.

Add repository to CVSNT

Press "Yes" when it requests you to initialize.

Next, go to "Server Settings" tab. Change the "Temporary Directory" to somewhere better.

Server Settings

Go back to the first tab, "About" tab. Start the CVSNT service that you have stopped just now.

Add User

Set environment with the following command:

set cvsroot=:sspi:localhost:{repository name}

e.g. set cvsroot=:sspi:localhost:/test

Use the following command to add a new CVS user:

cvs passwd -r {Windows account name} -a {user name}

e.g. cvs passwd -r Administrator -a englee

Enter password as requested.

Test Login

Enter the following commands:

set cvsroot=:sspi:localhost:{repository name}
cvs login
cvs ls -l -R

If you see a list after you entered the last command, you have got your CVSNT setup correctly! The next thing would be to learn to use it with command line! I think I will make another post on it in a few days.

If you find that my guide is too simple or simply incomplete, please go ahead to see the sites that I have referred.

Reference

  1. CVSNT 2.5.03 Installation on Windows 2003
  2. CVS Version Control on Windows in 10 minutes

If my article helped you solved your problem, consider buy me a beer!

Share this article: del.icio.us | digg it

Tags:

Related posts:

4 Responses


evita says:

thanks your information about the cvs-> add user.
my supervisor will give me ‘a’liao.


fedmich says:

Gonna try this one now. Thanks

Weird, your spam filter seems to be super strict. When I post my thank you message it says that my comment is spam.

Anyway, thanks again.


Miguel says:

doesn’t work this shit!.


Maurice says:

Perfect ! Thank you very much !