Summary of CVS error issues

Source: Internet
Author: User

Summary of CVS error issues

1. Q:cvs a problem with submitting a file, if the version is inconsistent, the following occurs:
CVS commit:sticky tag ' 1.2 ' for file ' abc.c ' are not a branch
CVS [commit aborted]: correct above errors first! Workaround: Go to the folder where the file is located in CVs, then find the CVS directory (hidden), go to the directory, open the entries file, and then find the place marked with the version number, such as:

CD CVS
VI entires

/abc.c/1.2/tue Dec 13:33:06 2002//t1.2

A: Then the T1.2 tag is deleted and submitted again.

2. Q:could not connect to:p server:[email PROTECTED]:/CVS_2010/PROJECT/SYWG (SYWG): Cannot connect to host:connection Tim Ed Out:connect
Connection timed Out:connect

    A: I also have this problem, restart the server is good.

CVS Frequently asked Questions

Based on Wincvs:

First, configuration problems:

1, win under the RWC = Linux under the rwx it? If I want a user to have read-only permissions, should it be set to r--?

Answer: R is all right.

2, I set the change "Cvsroot" owner: CVS chown Administrator, why always unsuccessful Ah. Prompt for CVS server: ' admin ' does not own '. '

Answer: 1.admin is not superuser.

2. To Cvsroot admin is not the owner

You should log in using Superuser or cvsroot owner

3, I am equipped with a user, now do not remember to give him what password, this can do? Is there any way?

A: Login with administrator, CVS passwd user, then reset password

4, is to set up their own working directory for each user, put their own development module in their own directory for convenience, or put a project in a public directory, for everyone to assign different permissions convenient?

A: If everyone is responsible for things that are not related to others, it is clear that the working directory is easy to separate. But this is not very good for a project as a whole, a little messy. And if there's a cross between the things that people are responsible for, it's even worse.

5, for everyone to assign different permissions, I do not know how to do this on the CVSNT server.

Answer: CVS Chacl default:n

CVS Chacl USER:RCW

n means no permission, r means read, C: Build, Delete, W is write

6, I want a user to have a project the next subfolder of the Read and write permissions, its folder does not have permissions should be how to specify it?

Answer: Separate directory operations

7, in the server-side user is how to set it? With Winnt users or CVS own users? I don't know how to set up CVS for my own users, but there's a problem with Winnt users as if they're related to permissions.

A: NT under Create groups, assign users to different groups, create permissions for groups

8, is not NT on the existence of users can log in to CVS ah? Or do you have to create one? Why do I log in to CVS with a user on this computer "CVS [login aborted]: authorization Failed:server 192.168.0.180 rejected access to f:/pxh for user eil Een "Ah

Answer: To map to CVS users

9. What does the configuration code mean?

A: The configuration code indicates the configuration environment for the module to run, etc., such as platform

10, how to do only some people can import?

To restrict import permissions, build a. perm file in the Cvsroot's sibling directory, write a user name in the file that can be import, for example, allow only the import operation for administrator, just write two lines:

Default:n

Administrator:rcw

You need to set permissions on Cvsroot, only adminstrator can access it. And the change has a administrator

11. CVS Chacl ADMINISTRATOR:RCW appears

CVS [Server aborted]: Invalid permissions: ' RCW

', can only has R, W, and C

CVS exited normally with code 1 * * * *

What's the clue?

A: The presence of such a hint indicates that when the command was hit by a carriage return, the command after the carriage return can be removed

12. CVS Chacl FLW:RCW appears

CVS chacl:empty password used-try ' CVS login ' with a real password

The client has two different users logged in, the CVS client records the information of your previous logged-in user, that you are still a previous user, the original directory does not have the CVS information, re-check out the out of the CVS information

Workaround: Change a directory export, and then do the permissions

13, in the use of passwd to manage the user can not solve the problem, administrator users no longer inside

passwd content deleted, after the deletion, as the system administrator's identity, password is the system administrator password, and then passwd build user command line input CVS Passwd-r-a administrator adminstrator

14, before cvsnt in the IP is 192.168.115.170, now I put cvsnt installed their machine, IP is 192.168.2.55, but also in the native login success, but use the command will prompt connect to 192.168.115.170;2401 failed: The connection attempt fails because the connecting party does not have the correct reply after a period of time or the connected host does not respond. Where is this setting supposed to be changed???

A: Manually modify the exported working directory hidden files in the root IP address

15. How to build a CVS user

Create a user under Winnt and then build a user mapping to that user in CVs, that is, with the-a parameter, CVS passwd-a-r Windows user CVS user 1

CVS passwd-a-r Windows user CVS user 2

。。。。。。。。

16. Build a library configuration process

(1), create directory, add this directory

(2), cvsnt in the Control Panel on the advance page of the second option to tick on

(3), set admin->preference

(4), using the System Management user login Export Cvsroot directory

(5), the Cvsroot directory to set permissions, enter the command

CVS Chacl default:n

CVS Passwd-a-R system Administrator CVS administrator

CVS chacl CVS Administrator: RCW

CVS chown CVS Administrator (the above is to change the. perms and. owner file contents under the Cvsroot folder, respectively, to control read and write permissions and ownership)

(6), add a new file under Cvsroot Admin to write to the CVS administrator

(7), change config: The second line of the #sysauth=yes changed to Sysauth=no

17, why a user can sometimes log in, sometimes not?

Because the config file in the second line Systemauth before the # is not removed, so config in the Systemauth setting is not valid, so the user can sometimes login, sometimes not, set to Systemauth=no can only be the CVS user authentication mode login, Available with Windows and CVS two hybrid authentication methods when set to Systemauth=yes

18, that is, such as the directory AA aa\aaa\aaaa, I want to let G users view aaaa, but can not see other content of the AAA directory, please, how to achieve.

The other directory permissions of the AAA level are set to N, only the AAAA directory can be r

19, how to set the access rights of CVS in the way of group?

You add a group file inside the Cvsroot, adding the same permissions to the inside.

I set up two groups: TEST1:AAA BBB N

TEST2:CCC RCW

After signing in with BBB, the project cannot be downloaded, and if I place the BBB under the Test2 group, you can download the project.

Set the permissions for two groups and Chacl, respectively.

As long as you set permissions on the group, you want to let the user have what permissions, as long as the user into the group under it,

You don't have to reset permissions.

Even if the individual permission is RW, and the group is N, it is the privilege of the priority group of the individual privilege to contradict

20, the server side of the entire project directory can not directly change the directory name?

Answer: No

21, I do not log on cvsnt, the old show "CVS [login aborted]: Authorization Failed" what happened, but I put cvsnt to a server machine problem solved, I have another one to porfession. There is no landing, the configuration is the same

Answer: cvs-d C:/CATV passwd-a Administrator

Run a bit above command on it, this command in the Cvsroot under the establishment of a passwd file, and add users, as if cvsnt used to be mixed landing mode, the system has administrator, and cvsnt to cvsroot under no administrator, run this command to build administrator this user,

22. What is the role of writers and readers files?

A: Only users who join writers can submit

Users who join the readers can only read

At the same time, users in two files can only read

Two files need to be added manually (use these two files in mixed mode)

If there are writers and readers two files, you can not upload the project, the user permissions control I do not have to use the command to assign permissions every time.

Another: By default, the passwd file does not exist, if you want to work in cvsnt authentication mode, you must establish the passwd file

Second, operational issues:

1, when I log in, the Information window is displayed in the previous user ah. How should I change it?

A: After you change the user, your working directory will be changed

2, is not I set the user rights, after using that user login, or use the Marco under the cvsroot to get rid of and then operate, or checkout to another directory to operate?

A: Different users have to checkout to different directories to operate on files by rights

3, I think the file to a below the B directory, how to write the path? Wincvs?

Answer: Import to a\b on it.

4. Can CVS not import an empty directory?

Answer: No

5, I import into the 1.1.1.1 want to change to 4.0 how to change

A: Fixed version, use commit SELECT, then tick the third option and write the version number you want to fix.

6. How to submit a new subdirectory to cvsnt under Wincvs

A: Create new Folder--add options--Submit options

7, such as I in an existing folder A, add 2 subfolders A1 and A2, is not only the A1, A2 selected later, add not to select a, and then directly submit it

Answer: The former

and A1 and A2 can't be empty, right?

Yes. Because you a1,a2 are non-CVS files, the submission will not be successful

Subdirectories added without inheritance

8, I change a file in a function, after the completion of the commit, the other changed the function, and then commit, what is the result of this change?

A: Upload prompt conflict, the result is you passed up, he preached when there is conflict. CVS will ask him to update first (if the upload also will prompt conflict.)

9. I performed CVS admin-l1.7, prompting CVS admin:while processing more than one file:

CVS [admin aborted]: Attempt to specify a numeric revision

A:-L to and the subsequent version number, no spaces, such as version number V1.7, should be written as CVS admin-l1.7 Filename.doc, can only specify one at a time, and to lose the full name of the file, you can not use *-u to unlock

10, I locked a file, the display has been locked, but I can also edit

A: The lock is the lock server-side file, the machine can be modified, but cannot submit

11, if I submit the deletion, others in check the entire project, that is deleted will also be check out?

Answer: You will not be check out.

12, how to view the different files

Answer: CVS Log

13, I would like to compare two tags or branch between the files have changed, with what command?

A: 1, export two versions to two directories, and then use the Text Comparison tool to compare the differences between two directories

2. CVS Diff-r tag1-r Tag2--brief

This will tell you what file differences between Tag1 and Tag2.

14. What are the rules for naming tags?

Answer: Project name-Module name-Configuration code-version number

15. How CVS merges:

A: If you change the same file different places, will automatically merge, if the change is the same place will create a conflict, you may need to manually change

Binary files cannot be merged. So if you take the C file as a binary import, the subsequent merge functions are not valid.

You can't trust the merge feature of CVs too much, even if the hint merge is successful, take a closer look, sometimes auto merge is not you

The desired result.

General use of checkout read-only, and then edit with reserved edit, do not recommend the use of force edit, you can prevent many people to modify.

16. After merging the contents of the file modification on the branch to the development main line, how can I not submit it?

After you have merged, you need to make changes to submit, not a merge to submit

17, according to the point of time to remove the past files, if the file exists before this time, no longer exists, how to remove the file ah?

Answer: RESET Label

Cvs-q Update–a

18. What do the parameters in Cvs-q update–a represent?

-Q: No output information

-a:reset any sticky tags/date/options.

-a:clear tag from removed files, would not otherwise be tagged.

19, why the checkout out of the file in Wincvs do not see

View->file Filter->clear All

20, Xml,mdb,gif,cpp,cs files such as checkin when the file type should be converted to what kind of

Ah?

A: Binary, we put various source code files (JAVA,C,CPP,HTML,JSP,CSS,JS, etc.) as text files, other files, including graphic files, documents (DOC,PDM,CDM,VSD,MPP), etc. as binary

Try not to binary with text as far as possible. Binary cannot be compared

(Open with UltraEdit, look at the text type, can not understand is the binary)

21. After the administrator establishes a new account, can the client user change his password?

Can, CVS passwd, then change, directly lose the new password two times

22, the wrong transmission, how to modify the format?

Change text to binary:

CVS ADMIN-KB foo.c

CVS Update-a foo.c

Back to Text:

CVS Admin-kkv foo.c

CVS Update-a foo.c (garbled after test)

23, I want to compare a local file and its corresponding server on the different revisions, such as yesterday's a revision, but now how to know the server yesterday that revision number, I use WINCVS.

A: View the file's graph, click on which should be able to see the version number and date.

24. If I have a conflict at the time of merging, how do I adjust this conflicting file in my trunk, I can't submit it now

A: You manually conflict and then submit


25. Appearance: CVS commit-m "no Message" Tony111.txt (in Directory E:\proj\training\)

CVS server:sticky tag ' 1.2 ' for file ' tony111.txt ' are not a branch

CVS [Server aborted]: correct above errors first!

A: The update when the label is removed, is the update to the third option on the hook

26. How do I download branches?

A: Select a branch or tag when the trunk Co is selected

27, can you tell us if the branch cannot be submitted separately? To be merged into the trunk to be submitted?

A: No, branches can continue to develop independently

28, have you tried the latest modified branch and the trunk of a very early version of the merger will be what happens. For example, there are two rel01,rel09 on the trunk, which is supposed to be combined with the latest 09, and the result is merged with 01.

A: Heavy and 09 Merge

29. More common commands for branching:

Check out skeleton version to local new directory

CVS co-r baseline_1_patch file name

You can also use the command

CVS co-d test_old-r baseline_1_patch file name

Submit a branch version

CVS ci-m "fixed bug no.123" Ttt.txt

Merge branch versions into the latest skeleton version in the same directory as the trunk version

CVS Update-j Baseline_1_patch

30, the developer to submit a version to the server, but the version on the server than his local high, he did not submit up, how to do?

A: There is a conflict will prompt, no conflict can be submitted directly, there is a conflict when updatet then change after commit.

31, how to ignore version control?

A: Create a new. Ignore file under that directory, and then add the file name that ignores the version control to it.

32, I ask everyone, why I set the project under the Modules file association, check out, some people can see, some people do not see it? (The same client is installed)

A: If it is to change the preference, is to start path is a, and then changed to B Landing, this situation is not obvious, first refresh, fresh do not have to shut down Wincvs again open, anyway do not change after landing on the line

33, how to build a branch of the document

A: This file needs to hit a tag first, and then build a branch on the basis of this tag, if you have, for example, rel_01

Then you need to put a label with this tag co locally

Then CVS Tag-b rel_01_branch readme.txt

34, directly remove a directory line?

The directory is not empty, the hint

CVS Remove test

CVS server:removing test

CVS Server:file ' Test/qjq.txt ' still in working directory

CVS server:1 file exists; Remove it first

You must remove the file, remove the directory, and then update

35, when the CVS update, the file name before the letter meaning:

P: Update to a new version by patching.

U: Update to a new version by downloading the method.

M: Your local file has been modified.

C: Your version conflicts with the new version stored on the server. You should eliminate conflicts by editing conflicting files and import your changes.

At this point in the current directory next to a more of your modified backup file, named. #file-version

?: Files are neither in the file vault of the remote server nor in the local ignore list.

A: The file has been added but has not yet been submitted.

R: The file has been purged, but it has been submitted.

36. To import a folder into a module folder, is it possible to use only add, not import ah?

A: To import it together with his upper level

can also be imported separately, but it is necessary to set the path

37, Wincvs inside the monitor why use?

Monitor the editing status of a file

You can monitor the editing status of those files that are highly watched. This design follows the Publish/subscribe model. When someone wants to modify a file, she (CVS) issues an "edit" command that notifies the developer who set up the "watch" for the file. Monitoring notifications are sent via email. Similarly, notifications are sent when a file is submitted.

To monitor a file, select "Add a Watch" from the trace menu.

38, why sometimes cannot commit, prompt a bunch of such information

CVS server:up-to-date check failed for ' StatInterface.h '

CVS [Server aborted]: correct above errors first!

A: This has a referential relationship or compiled preferably without import, if you want to import it into binary mode import

I've been importing before, and now I've made changes, I can't commit.

the , CVS is it supported to separate the files that were updated in recent days?

Answer: CVS update-d "2 days Ago"

40. How to view file status:

CVS status-v file name

41, what method can allow CVs to automatically determine when importing files in some format (such as binary) import?

A: In the Cvsroot/cvswrappers file to add the extension needs to be binary import, such as: *.exe-k ' B ', you can add the format you need *.avi-k ' B ', save after the next import, CVS according to the format defined in this file to import, Other formats:-ku Force Unicode,-ko Force no keyword extension, t force text

42. I picked up the baseline_2 tag file and then used the CVS tag-b baseline_2_patch code

Create a, how should not be built?

Answer: CVS Tag-b baseline_2_patch

Third, Linux-based:

1, is not each user need to assign a working directory?

A working directory should be assigned to each user under Linux. Winnt is not necessary.

2. How to configure CVS under Linux

Add CVS user Group

Groupadd CVS

Add Cvsroot user is the CVS group

Useradd-g CVS Cvsroot

Add a row to the/etc/inetd.conf

Cvspserver Stream TCP nowait root/usr/bin/cvs-b/usr/bin--allow-root

Join the user with the use of CVS

Useradd-g CVS Test

Add a row to the. bash_profile file

Export cvsroot=:p server:[email protected]:/export

If CVS were on the 192.168.1.1,

/export PServer

Where export is the path to build a repository for CVS

Mkdir/export

Chown Cvsroot Export

CHGRP CVS Export

chmod 764 Export

3. How to lock files:

CVS Admin-l test.txt

can commit but not work

6.1 How to delete a downloaded file or directory:

1. Select one or more files to download and execute the "Remove" command.

2. Select the files again and execute the "Commit" command to complete the delete file operation.

3. In essence, CVS does not delete any files and directories, even if the above operation, delete some files, the remote CVS actually do is to put the files submitted to delete in a directory called "Attic", so the deleted files can be recovered by some means.

6.2 How to recover a file or directory that has been deleted:

1. Recover the file after the "Remove" command has been executed.

L "ctrl+l" directly enter the command CVS add xxxxx, or perform "add Selection" interface operation.

L This allows you to recover deleted files that have not yet been submitted directly.

2. Recover the file after executing the "Commit" command.

L can only use "ctrl+l" to directly enter the command CVS add xxxxx, you will get an empty file.

Select this empty file and perform an "Update" operation to get the entity of this file.

L Select this file again and perform a "Commit" operation to get the latest version of this file.

3. Because the CVS system does not delete any directories in nature, so there is no restoration of the directory, but the CVS system by default is to delete the empty directory on the user's native (for example: YCW2000), so you can use the following method to get the empty directory that has been deleted: CVS checkout-p xxx , you can also set it on the "Globals" page of Admin=>preference.

4. The CVS system can ensure that: as long as the file uploaded to the server, no matter how you do in the remote operation, normal or abnormal operation, can be used administrator landing up, through the above method to find lost files. Unless the user goes to the remote server and deletes the file manually, there is no way to do it:)

6.3 How to get the previous version of the file :

1. Sometimes we need to get a previous version of the file, and the Wincvs default way is to only pass the latest version.

2. Select a file, "Ctrl+g" or right-click, click "Graph Selection ...", use the default settings, you can get the file so the version of the graphical structure of the description.

3. Select a version, right-click, click "Retrieve revision", you can get the corresponding old version of the file. Of course you can also get the latest version of the file:)

6.4 Sometimes Wincvs will become unusually slow, how to do?

1. Verify that the CVSNT server side is not installed on the machine on which the WINCVS is installed because they may be using a inconsistent version.

2. Wincvs is installed only, but other versions of Wincvs have been installed before, what should I do?

3. Uninstall all WINCVS systems First and remove any remaining files from the installation directory.

4. Open Registry Editor, find the CVS keyword, find a delete, until you can find it!! :)

5. Reinstall Wincvs, this problem basically can solve, I just so solve, do not know how you there? :)

Summary of CVS error issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.