SVN installation and use

Source: Internet
Author: User
Tags tortoisesvn

Directory

1 Client Installation-- P1

2 SVN Initial import of the project-- P4

3 Basic client Operations-- P8

4 MyEclipse7.5 SVN plug-in installation detailed steps -- with picture-- P15

5 Eclipse under SVN installation and use of version control plugins-- P30

First, SVN Client--Installation

1 : Double-click the installation file: Tortoisesvn-1.5.5.14361-win32-svn-1.5.4.msi

2 : Click Next and Next

3: Select I accept the Radio box, and the next appears button and then click Next

4 Click Browse The button changes the program installation location (can not change), I put the installer in D:\Program files\tortoisesvn\

Click Next for Next

5 : Click Install, and wait patiently .

6 : The following interface appears after a few seconds

7 Click Finish Complete the installation

because the program asks whether to restart immediately, in order to let SVN working copy in Windows The special style of the species, which is independent of all the actual functions, but it is recommended to restart the machine in order to see the good results immediately.

8 : Click Yes Automatic system restart

Second, SVN Initialize import of Project

assumption: SVN in E:\chinamobile created a repository, and SVN opened from the command line: How to initialize a project to import the Chinabile What about the repository?

1 : Comes to the root of the project to be imported:

C:\Documents and settings\administrator\ Desktop \catalog_20100907

There's a project called Catalog under this directory.

2 : Right-click--tortoisesvn --import ... came up:

3 : At URL of repository: Enter svn://localhost/in the box below , If the server is installed on another machine, change localhost to the IP address "svn://192.168.0.145/" of the target machine. If you do not want this project to be relegated to the root of the SVN repository, you can add the subfolder name to/after it, for example: "Svn://localhost/zhao"

4 : Enter "Svn://localhost/zhao "Click OK , there will be

5 : Enter the user name and password ( for the permissions provided to you on the server, you can ask the server-side administrator),

You can save the user name password by clicking the checkbox in front of Save authentication

Click OKto appear, import the file's progress box as follows:

5: import completely and if there is no error, the data is all imported into the server-side repository Zhao Sub- directory

6 : Click OK complete the initialization of the import project.

7 : on the server side want to see your version of the import, you can go to the E:\chinamobile folder

Right-click--tortoisesvn --repo-browser

Appear:

Click Left Zhao next to Folder + The number unfolds, appears;



Three, basic client operation

If you want to remove an item from the repository to a working copy

1 : come to any empty directory, like E:\export , run right-click--svn checkout , appears:

2 : Enter the correct URL of repository: the project that you want to export before the SVN which location on the version controller.

Click OK

3 : after some time (the length is related to the size of the project),

4 : Click OK to complete the export work copy

5 : go to E:\export found, the original empty folder, into the present;

6 Open the project, make the changes, and then right-click--svncommit ...

7 Click OK appears:

8 Click OK Finish modifying the contents of the project in the repository.

How do I view the changes made?

9 : Click E:\export under the catalog working Copy, right-click--tortoisesvn --show Log appears:

Check version 1 ,

Right-click--compare with Working copy

Select Cameraaction.java

Double click:

can compare files and versions of working copies 1 the difference.

In addition, SVN can also be used in the compiler plug-in instead of client-side tools to make it easier to develop.

The following first gives:

Four, MyEclipse7.5 SVN plug-in installation detailed steps -- with Diagram

I use MyEclipse7.5, but more than 7.5 of this version should be similar to the bar, everyone according to their own situation.

1 The first step, select Help--software Updates--add/remove software ...

2 Click to appear after:

3 personal Software in the selection box , then click Add on the right button, this will pop up a box,

4 Click Add Site directly button to pop up another small window on the original window,

5 fill in the contents of the text box.

Name:svn

url:http://subclipse.tigris.org/update_1.6.x

6 Click OK after filling out button.

7 found out there's svn in the box. , check svn. and personal Sites node,

8 Click Next button,

9 Click Apply button, waiting to load, the loading process is a bit slow so you need to wait patiently.

Ten after loading, the following screen will appear, select the check box below

One Click Next

A then click Update .

The installation process is very long and slow, so be patient and don't stop the installation because he stopped for a few minutes in one place and thought he was dead.

- when the installation is finished, he will pop up a dialog box,

- Click Yes

He will automatically restart the MyEclipse, after reboot is OK!

the in the end, it's window-->show view-->other. See if there's svn . The appearance of the film content proves that the installation was successful Oh!

Five, MyEclipse7.5 SVN How to use plugins:

Because the Web project has been put into catalog under the Zhao folder in the previous repository,

1 Open MyEclipse compiler, click Openperspective in the top right corner of the compiler --other

2 Open SVN Resource Library Interface

3 Click OK

4 in the upper left corner of the SVN right--new--resource pool location under library

5 when clicked, it appears:

6 with the e:\chinamobile that have been set up the resource pool, Svn://localhost/zhao as a project catalog, so the URL Enter "Svn://localhost/zhao "

7 Click Finish, will appear on the compiler as shown in the tree structure of the project in the version server (user password Authentication may be required.) ),

8 in Svn://localhost/zhao Right-click on the root directory and select "Check out as" (the English version may be called Checkout ),

9 appears:

Ten Select "Check out as project in Workspace" in the window, and the project name below is called, and I use catalog as the project name.

One Click Finish , go to the default editing development interface, such as

A The project is then brought down from the server to the local. And will find that the next project file will be marked with SVN version control,

- go to workspace again. look below, you will also find the downloaded project folder, and there are control marks.

- in MyEclipse the edit bar will find the project just under the right button--more than a team menu, open a look, is a client tool, including, submit, update, Sync, merge, switch and so on.

the after submitting or updating, you can view your version in the browser .

Go to the Repository browser to find the catalog of the imported project (enter the E:\chinamobile folder, right---tortoisesvn--repo-browser)

Six, Eclipse under SVN installation and use of version control plug-ins

The version I'm using is eclipse3.2.2+myeclipse_5.1.1, because it's only CVS and not integrated with SVN, so if you want to use SVN for version control, you have to install an Eclipse plugin subclipse, Subclipse detailed installation process on its official website http://subversion.tigris.org written very clearly, and with a map, I directly copy the

(1), install Subclipse in Eclipse 3.x (installation) Step 1:

Begin the installation from the Eclipse Helpmenu item.

Step 2:

This screenshot show the screen as it initiallycomes up. In this case, you'll need to the radio button to Indicatethat, this is a new install.

Step 3:

This screen would vary depending on the featuresyou has installed already. You want to click on the New Remote Site button. Ifyou is behind a proxy and the Eclipse install mechanism does not work, thenyou can download a zipped version of the UPD Ate site and then click the Newlocal site button instead.

Step 4:

This was showing the New Remote Sitedialog, filled in with the correct information to install Subclipse

Name:subclipse 1.2.x (Eclipse 3.2+)
url:http://subclipse.tigris.org/update_1.2.x
Name:subclipse 1.0.x (Eclipse 3.0/3.1)
url:http://subclipse.tigris.org/update_1.0.x
Step 5:

The site you added won't be selected if you first come the Be sure to select it before clicking Next.

Step 6:

This next screens shows all of the features is available to install.

Step 7:

Click the button to accept the license agreement.

Step 8:

Confirm the Install location

Step 9:

There is a Eclipse preference to turn off this next dialog. I have never seen a signed feature. Not even eclipse.org nor IBM sign their features.

Step 10:

Just a screenshot of the in-process installation.

Step 11:

Eclipse needs to is restarted after installing Subclipse.

Step 12:

Finally, after restarting Eclipse, the first thing you'll typically want to doing is open the Subclipse Repository perspect Ive where you can define your repositories. Be sure to also check the online help as well as the Subclipse preferences located under Team--SVN.

Ok

By this your plugin has been installed, explain, in step 5 is selected in the online installation, can also be in the http://subversion.tigris.org/servlets/ProjectDocumentList?folderID= 91 Download after local installation, local installation choose New Local Sit ..., and then find the extracted folder, the back of the same.

The uninstall method is also very simple, also click help = Software Updates = Manage Configuration

You can uninstall it by pressing the operation.

Second, use Subclipse in Eclipse 3.x (used)

First add an Eclipse project to the repository, I am here to build a Web project svntest, import it into the repository svn://localhost/ts (this uses the native version of the library, the other machines will hit the IP address, said before). After importing with the Repository browser to find your imported project directory, the next webroot\web-inf\classes directory deleted (Note: Do not delete the error, the reason behind the discussion) these initialization operations are done with the client tool, after all, plug-in function is not so powerful.

When you are ready to open the Eclipse compiler, click Open in the upper-right corner of the compiler perspective the SVN repository interface to create a new repository

Select the location of the repository, here we use just svn://localhost/ts as a project directory, click Finish if successful will see the version of the project in the server tree structure (may require user password Authentication). Right-click on the Svn://localhost/ts root, select "Check out" (the English version of the possible call out), in the Pop-up window select "As a Space project", the bottom of the project name is called, I still use svntest as the project name.

Everything's fine. Click Finish. Then it will take the project from the server to your local. Well, coming to the Eclipse edit bar, you'll find that the project files just below will be tagged with svn versioning, and then go to workspace to see the downloaded project folder, as well as a control tag. And we will find in the SVN control of the file more than a Team menu, open a look at the original is a client tool Ah, submit, update, Sync, merge, switch ... We are more familiar with it, try it yourself ^_^.

By the way, why did you delete the class directory, at first I did not delete it, change the commit no problem, but always error when updating: ... Working copy not locked; This was probably a bug, please report SVN: The hint is in the class directory. SVN is faulty, to http://www.tigris.org find a solution, there is a description:

This message was coming straight out of the Subversion library, so technically it was Subversion asking you to report the Problem to them. This error message was kind of their general error message when something really unexpected happens. In the case of Eclipse, the problem are almost always one specific thing. The problem is, your Eclipse build folder was versioned, and added to your repository. What happens was when Eclipse does a full build it would delete everything in this folder, including the ". SVN" Metadat A folder. When Subversion cannot find this folder it issues the above error.

The solution is to delete this folder from your repository, which you can do from the SVN repositories view. Then try deleting the folder from your working copy and perforiming an update. You might need to checkout your project again. Once you has a valid project again, be sure to add the build folder to the Svn:ignore property of its parent folder so th At the problem does is not happen again.

If This isn't your problem, then as the best as can-try-to-figure out what might has led up to has this problem and r Eport it on th Subversion [email protected] mailing list

The main idea: the redeployment of the project will be the contents of the folder web-inf/classes all deleted, including ". SVN" This folder, from the face cause SVN can not find this folder information, so error. The solution is to empty the contents of the classes in the SVN repository and then remove the local project, including the files, from the SVN repository, while ensuring that the local project is fully committed. The cause of this problem is unclear, and it is estimated that you have manually added files to this folder.

SVN installation and use

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.