Using a Local Version of CVS
In some cases, you may be developing on the same machine as the CVS server. In this case, you can simply set the CVSROOT environment variable to the absolute path of the CVS Repository. For example:Using the :pserver: ProtocolC:\> set cvsroot=c:\cvsrepo\test
C:\> cvs ls -l -R
Listing modules on server
Directory CVSROOT
checkoutlist 1.1 Fri Jan 23 16:19:24 2004
commitinfo 1.1 Fri Jan 23 16:19:24 2004
config 1.1 Fri Jan 23 16:19:24 2004
cvsrc 1.1 Fri Jan 23 16:19:24 2004
cvswrappers 1.1 Fri Jan 23 16:19:24 2004
editinfo 1.1 Fri Jan 23 16:19:24 2004
historyinfo 1.1 Fri Jan 23 16:19:24 2004
loginfo 1.1 Fri Jan 23 16:19:24 2004
modules 1.1 Fri Jan 23 16:19:24 2004
notify 1.1 Fri Jan 23 16:19:24 2004
postcommit 1.1 Fri Jan 23 16:19:24 2004
rcsinfo 1.1 Fri Jan 23 16:19:24 2004
taginfo 1.1 Fri Jan 23 16:19:24 2004
verifymsg 1.1 Fri Jan 23 16:19:24 2004
Directory CVSROOT/Emptydir
This section discusses how to add CVS users. Keep in mind that adding users to CVS is only required if you are using the :pserver: protocol. If your users are all on MS Windows PC's, this is not recommended since it has inherent security flaws. It would be better to use either SSPI or :ntserver: (keep in mind however that :ntserver: is being phased out now) because these protocols integrate much better with Windows NT. If you do plan on using the SSPI protocol, then you can skip this discussion of how to add and manage users.Using Other ProtocolsTo start, open a command window and do the following - (replace all items
with the real values from your system) :
NOTE: When using the :ntserver: protocol, the computer name cannot be entered as "localhost", it must be the real name of the computer.
C:\> set cvsroot=:pserver:The following example, I will loging to CVS using the :pserver: protocol. The CVS server is named bartman and my user name is jhunter. Keep in mind that I needed to first create the local user, jhunter, on the CVS host. (Which in this example is named bartman.)@ :/TEST C:\> set cvsroot=:pserver:jhunter@bartman:/TESTTo logout of the CVS user, use the following:
C:\> cvs login
(Logging in to jhunter@bartman)
CVS password: *******C:\> cvs logout
(Logging out of jhunter@bartman)
C:\> set cvsrot=:sspi:jhunter@bartman:/test
C:\> cvs login
(Logging in to jhunter@bartman)
CVS password:**********
C:\> cvs logout
(Logging out of jhunter@bartman)
C:\> set cvsrot=:local:jhunter@bartman:/test
C:\> cvs login
(Logging in to jhunter@bartman)
CVS password:**********
C:\> cvs logout
(Logging out of jhunter@bartman)
No comments:
Post a Comment