![]() ![]() In this example, we add the user s801234 to the password file: htpasswd CVSROOT/passwd s801234 You can add users to your CVS-repository in two ways: either by using the admin page on the CVS-server or by following this guide.įirst run the following command to check out the password file for the CVS-repository: cvs checkout CVSROOT/passwdĪdd one or more users to the password file. ![]() However, if you are using CVS for the first time or adding a new module, you must setup your CVSROOT yourself as mentioned above. Normally CVS will already know this since it is stored in directory/CVS/Root, which is created by CVS when you check out a module. Note: For all of the following commands to work, CVS has to "know" your CVSROOT. If you prefer not to have your password stored in that file, run "cvs logout" after you finish using CVS. Your CVS-password will be stored (encrypted) in ~/.cvspass so that you do not need to run that command every time you want to use CVS. For adding users to a CVS-repository see the description below. If not, the password will be the password chosen by the owner of the repository when they added you to the repository. This is your standard databar password, if it is your own repository. Most commonly a CVSROOT is remote and will be in the following form: you have a CVS account in the G-Bar, you should set your CVSROOT in one of the following ways, depending on your shell (BASH is standard in the G-Bar): export setenv it is your own CVS-repository, LOGIN will be the same as USERNAME. The CVSROOT variable defines a path to your CVS repository so the CVS client knows where to look. Beyond this, default settings should typically be adequate to configure smartCVS for daily use.ĬVS from the command line Set up $CVSROOT Project -> Repository Profiles -> add -> enter CVS location contains a textbox, where you should fill in the $CVSROOT information that you took note of earlier (it has the following syntax): you copy-paste the info into the pserver field, smartCVS will fill out all relevant info for you. ![]() One part of the program is especially relevant though, and that is the Repository Profiles, one of which you need to create to be able to access your new CVS repository. We're not going to cover the full usage of smartCVS here, as it is a fairly straight forward program to use if you understand CVS (and if you don't, you might want to use Google to read up a bit first :-). Should you prefer a text based approach, you may use the traditional CVS commands from the command line, in which case you should read the "CVS from the command line" section. smartCVS may be started from the menu under the category options, or alternatively from the command line with the command "smartCVS". checkout, commit and update), which is called smartCVS. The G-Bar provides a graphical tool to work with the CVS (i.e. You have a few options when you want to use the newly created CVS for daily use. The information about the server that it contains is needed to access the CVS later. Remember to take note of the $CVSROOT (checkout string) information, which is listed when you've created the repository. When the repository has been created, you may either continue to work with the options provided by the CVS interface, or set it up from the command line (described in the section "CVS from the command line"). Use the interface located at to create the account usage of the interface is described there as well. Simplified way of making backups of your repositories.Īs mentioned, the new server is available at .Īs a user in the G-Bar, you have the opportunity to create a repository.It is now easier to give access to other users.You can create more than one repository, each with its own set of users (e.g.The most important features of the new CVS-server are: Starting January 1st, 2007, a new CVS-server ( ) is available. Instead, you can view the differences between your version and the new version of the file by using the command update. If the file has been changed since you checked out your copy, you are not allowed to commit the file. ![]() When you finish working on the file, which is actually the copy in your home directory, you upload the file and the changes by committing the file back to the repository. When you want to work on a file, you download (check out) a local copy of the file. The files are grouped into modules, which you can create with the import command. Old versions of the files are saved, which makes them easy to recover. Project files are stored in a CVS repository along with information about the changes made to the files. CVS (Concurrent Versions System) is a system for keeping track of project files with several people working on them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |