Talk about localization of CVS (1)

xiaoxiao2021-03-06  60

04-9-29 13:48 did not solve the problem last night. Check the help file carefully and find this: If you provide a CVS command line tool, you can support localized version configuration management. The trial process of the promotion is as follows: 1. Install the WinCVS12. There is a cvs.exe command to support the command line; 2. Download the CVS module in the NB Update center and load; Mount Version Control, the Settings dialog box, select the CVS's profile, and set the type to local (such as helping to prompt), then set the Working Path and Reporty to determine. 4, init, normal; checkout, normal;,,,,,,,,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The CVS path, as well as the Unix Shell's interpreter as command.com, and the problem is still.

In noon online query, first help in China Java.com (http://www.cjsdn.net/post/view?bid=7&pter=11448888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888) Search, huh, it is very useful. However, I saw a useful, using cvs to manage their own procedures (http://www.fanqiang.com/a6/b9/20010809/1500001096.html). 1. Initialize the environment and set repository. 1. If the method is made, ME first sets the environment variable (explains, me's win98), set cvsroot = e: / mydata / repst / cvsroot in the DOS window, then run the set to check the variable has been set; Who knows running CVS init When there is a problem, the error prompts "cvs.exe [init placeded]: No Such Host E". In the example, the OS is unix or Linux, paths such as / user / cvsroot, and CVS does not support Windows path systems? ! 2, find the cvs.hlp help file, turn over, turn it out, finally found this in Node: Repository: But if (Under Windows NT, for Example Your local repository is C: / src / Cvsroot, THEN You Must Specify The Access Method, AS in: local: c: / src / cvsroot. Oh, there is still such a saying! Subsequently, in order to query the meaning of repository (sweating!), The results were found with Google found the Chinese version (http://cvsdoc-en.gro.clinux.clinux.org/cvsdoc/en.cn/html/repository.html#Repository), Oh, you can see the Internet is a good stuff! 3, good, the words returned, running cvs -d: local: e: / mydata / repst init, no, see I finally moved forward. Second, import an example item to CVS. 1. Enter the directory E: / mydata / javapro / sound in the project; 2, then run the cvs import -m "start my project: Sound" Sound Heart 5 Start, 哟, bad, the damn "No Such Host E "Actually appeared again! ! ! Dizzy! Working Directory also needs to be used: local way access, trying for a long time, always unsuccessful. 3, there is no way, have to help Google. This time, this time, the search "No Such Host" search actually has no Chinese results, and only 21 of the E text and almost useless.

Looking back and then "telling the CVS source code library where" in the Chinese help file "section (http://cvsdoc-zh.gro.clinux.org/cvsdoc/enz_cn/html/specifying-a-repository.html#specifying% 20A% 20Repository), I feel that there is a problem of environmental variables cvsroot. 4, haha. The debugging is successful, command is cvs -d: local: e: / mydata / repst import "START My Project: Sound" Sound Heart5 Start, after running, NO Conflicts Created by this Import, look at CVSROOT, have set one The Sound directory and the files stored have been taken over by CVS, because each file is tagged in the CVS, such as the tags such as BRANCH, LOG. 5 ,? ? ? Insufficient in the United States is IMPORT that even compiled Class files. If you should have a filter option, try again next time. Third, lead the project from CVS. 1. Remove the source Sound folder backup. 2. Create a new WRKTMP directory, enter the directory, run the CVS Checkout Sound. Wow, the "No Sunch Host E" has appeared again. This time you are not afraid, add a positioning repository command cvs -d: local: E: / myData / repst checkout sound, OK, normal. 3, check the WRKTMP directory, there is more sound directories; enter, it is the file that is just imported, but there are more children CVS; enter CVS, there are three files, root, repository, entries. 4,! ! ! Every time you have to enter -d -d to specify that the location of Repository is really annoying. Can you set an environment? ! I tried it, success. Set the environment set cvsroot =: local :: E: / mydata / repst trial run CVS Checkout Sound, system prompt "cvs.exe checkout: updating sound", it should be successful, huh, huh. Fourth, save the modified to CVS. 1. Make a modification of one of the original files and add a function. 2. Run the cvs commit -m "add a function", display success, the version number of the file just changed into 1.2. 5. Add files to your project. 1. Copy a Java file from it elsewhere. 2, cvs add about.java, displayed to add success, and remind you to use the commit function to completely join; CVS commit about.java, pop-up comment text reminder (automatically open the notepad here), enter the comment message, complete the addition. 3,! ! ! Add a file, you need commits after running the add, you really check into the source library. 4 ,? ? ? When adding a directory, it seems to have some problems, temporarily can't operate normally, the specific performance is the file in the directory that cannot be automatically signed into the source code library. ! ! ! The execution method of add command is not recursive. You have to specify that you are ready to add file names and paths in the source code library. Moreover, each directory must also add a source code library separately before adding a new file. 6. Remove files from the project.

转载请注明原文地址:https://www.9cbs.com/read-111672.html

New Post(0)