Subversion (SVN) FAQ and how to solve it

Source: Internet
Author: User
Tags svn in domain to domain tortoisesvn

<?xml:namespace prefix = o ns = "Urn:schemas-microsoft-com:office:office"/>

1. Hide files. What about the SVN directory deletion?

After checkout, under the workspace. SVN directory has a large number of hidden files, occupy a relatively large space, they are working space management files, can not be deleted, if accidentally deleted also don't get mad, will not affect the server side, the checkout can work again. If you want to not include these hidden file exports, you can do so with export in the Tsvn menu.

2. File name problem, when downloading code, download to half, system hint can not find ... File, prompt can ' t copy ' ... "to" ... "the system cannot find the specified file

This problem is probably due to the upload of different files with the same name, in Repo-browser found a file with the same name deleted one. (The problem has been confusing for a long time and solved is so simple)

3. Why my config library http://ip/svn is not accessible, prompts for no permissions, but can be accessed through Http://ip/svn/myproject

The Apache configuration file httpd.conf is configured with only the virtual directory of the metabase repository, which is not physically present, and can only be accessed to the specific repository level even if all of the configuration library's permissions are available

4. A commit can be made on the machine on which SVN is installed, but an error occurred through another machine commit

A commit can be made on the machine on which SVN is installed, but the following error occurs with the other machine commit, Appach permission file is not a problem

The error message is as follows

Error Commit failed (details follow)

Error mkactivity of '/svn/test/!svn/act/739fe0d1-58f7-be4a-915b-a:03 Forbidden (http://192.168.0.1) '

Through many attempts, finally found the reason. It turns out that the domain name was written incorrectly.

Affected by the following configuration:

Add in httpd.conf file:

#SSPI Authentication

<Location/repository>

DAV SVN

Svnparentpath d:/repository

Authzsvnaccessfile E:/repository/accessfile

Require Valid-user

AuthType SSPI

AuthName "Subversion repositories"

# SSPI Settings

Sspiauth on

Sspiauthoritative on

# point to DomainController

Sspidomain domain.com.cn

Sspiofferbasic on

</Location>

Ssidomain in domain write is all domain name, our company's domain name is domain.cn. Change it to domain, then restart Appache.

5.can ' t connect to host ......

1, the server is not running, there is no open the appropriate port

If the server is Svnserve, check that there is no running svnserve, there is no open 3690 port

If the server is Apache, check to see if APAHCE is running and open port 80

When checking, you can run Netstat-na on the server to see if the corresponding port is listen

2, the firewall has not opened the corresponding port

3, whether the client can connect to the appropriate port of the server

Use the command Telnet server IP appropriate port

such as: Telnet 192.168.0.1 3690

6. Svnserve-based Subversion server after new configuration permissions: Svnserve.conf:12:option expected

The problem is that when subversion reads a profile svnserve.conf, a profile with a leading space is not recognized, so there should be no space before each line in the configuration file

7. How to permanently delete a file or directory in the SVN version library.

[Case One]

For example: The latest version of the current library is 46, and I have a 5M file on the 46th version, named FY07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

Now I'm going to remove this new 5M file completely and don't want it to exist in the library.

(1) Use the SVN log-v command to view path when adding files. Or use client tools such as TortoiseSVN to view or

C:/MYHOUSE/SCM_HOME/SVN_HOME/LOCALTEST/DOCS/GENERAL>SVN log-v "FY07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf "

------------------------------------------------------------------------

r46 | Zhangjia | 2007-09-23 10:40:34 +0800 | 3 lines

Changed paths:

A/docs/general/fy07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

FY07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

Delete for ever

------------------------------------------------------------------------

(2) The results are added to the path of/docs/general/fy07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

(3) Lock the entire library to prevent any further modification in the process

Of course, if not lock is also OK, only when you import all the content into the new library, but also use Dumpfilter to the old library

The new section is also imported into the library. In order to avoid unnecessary trouble, we need lock

(4) Export all versions in the old library

Svnadmin Dump C:/MYHOUSE/EXTERNAL/SVNREPOS/SVN > Svns.dmp

(5) Filter the files in the exported old library and remove the path of the file that we don't use

Type Svns.dmp | Svndumpfilter exclude "Docs/general/fy07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf" > Filter.dmp

(6) Recreate a new library, preferably the same version as before. And don't make any changes.

Svnadmin Create C:/myhouse/external/svnrepos/svndump

(7) Import the exported file that we filtered into the new Couchen

Svnadmin Load C:/myhouse/external/svnrepos/svndump < FILTER.DMP

(8) Check the status of files and versions in the new library

[Case Two]

The latest version of the current library is 48, and I have a 5M file on the 46th version, named FY07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

Now I'm going to delete the new 5M file on the 46th version completely and don't want it to exist in the library.

(1) Use the SVN log-v command to view path when adding files. Or use client tools such as TortoiseSVN to view or

C:/MYHOUSE/SCM_HOME/SVN_HOME/LOCALTEST/DOCS/GENERAL>SVN log-v "FY07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf "

------------------------------------------------------------------------

r46 | Zhangjia | 2007-09-23 10:40:34 +0800 | 3 lines

Changed paths:

A/docs/general/fy07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

FY07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

Delete for ever

------------------------------------------------------------------------

(2) The results are added to the path of/docs/general/fy07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf

(3) Lock the entire library to prevent any further modification in the process

(4) Export all versions in the old library

Svnadmin Dump C:/MYHOUSE/EXTERNAL/SVNREPOS/SVN > Svns2.dmp

(5) Filter the files in the exported old library and remove the path of the file that we don't use

Type Svns2.dmp | Svndumpfilter exclude "Docs/general/fy07 GDCC Training_customer_satisfaction_survey v1.0 (Internal Trainer). rtf" > Filter2.dmp

(6) Recreate a new library, preferably the same version as before. And don't make any changes.

Svnadmin Create C:/MYHOUSE/EXTERNAL/SVNREPOS/SVNDUMP2

(7) Import the exported file that we filtered into the new Couchen

Prompts during import:

...

<<< started new transaction, based on original revision 46

-------Committed revision >>>

<<< started new transaction, based on original revision 47

* Editing path:src/build/build.xml ... done.

-------Committed revision >>>

<<< started new transaction, based on original revision 48

* Editing path:src/build/scmbuild.xml ... done.

-------Committed revision >>>

Obviously the version 46th has been retained, but the file we're about to delete is also deleted.

(8) Check the status of files and versions in the new library

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.