| Version Control 101 With CVS | |
By Rodney Amato |
Published
06/20/2006
|
Programming , Web Design , Web Technologies
|
Rating:
![]() ![]() ![]() ![]()
|
|
|
Your First CVS ModuleAssuming that your website is in the directory d:\website, right click on the directory in Windows explorer and choose “Make New Module” as show in Figure 1: You will be prompted with a window that asks you about where you would like to make the new module (i.e. which repository). Assuming your repository is like mine (just a folder on your hard drive), then choose “Locally Mounted Folder” from the protocol list. Doing this should add :local: to the CVSROOT field. Don't worry about this field, we shouldn't have to edit it manually. Next, fill out the “Repository Folder” field. In our case this is d:\cvs. Finally we can specify a different name for the module if we like. In this case I am going to leave it as the name of the folder the files were in (i.e. Website) however it is a good idea to set this to your product name if you make software products or if you do more client focussed development then perhaps the client name would be a good choice of module. ![]() Once these settings are filled in, click the OK button. Since this is your first time importing a module, the d:\cvs directory hasn't been setup as a CVS repository yet. Thats OK, because we are now prompted to initialize a new repository. Check the tick box then click ok: ![]() Once you click OK you should see a log window come up with a bunch of messages. The messages will differ depending on your exact situation but the main thing to look for is “Success, CVS operation completed” like in Figure 4: ![]() You may also get a message about cvslock from Windows, in which case you should click on the "Unblock" button. If you browse to your CVS directory in Windows explorer it will now show extra icons indicating the state of the files in CVS: ![]() The question marks in our example indicated that CVS doesn't know about these files for the module that you are looking at. The reason the CVS folder doesn't have an icon is because it is a special folder which holds information about the CVS state of the files and directories at the current level. It's a hidden folder so if you have Windows setup to hide hidden files (as is the default) then you won't be able to see the CVS folder – which is fine. |
|
» Home
» Programming
» Version Control 101 With CVS
» Home » Web Design » Version Control 101 With CVS
» Home » Web Technologies » Version Control 101 With CVS
» Home » Web Design » Version Control 101 With CVS
» Home » Web Technologies » Version Control 101 With CVS
or 02-9262-7770 






