跳到主要內容

Installation of Subversion Server and Client on Windows Platform

1. Download Subversion latest version

2. Download Tortoise (Subversion Client) Latest version

The latest version of the software has been downloaded in the folder

Steps for Server Part

1. Install the server and install the Tortoise client on the Server computer

(The reason to install Tortoise client on the server computer is because Tortoise client can help you to create and manage repository in the server computer and you can forget about the admin command of subversion server. Note that the newest version of Tortoise only uses file based repository and does not use BD format repository. The file based repository is recommended by Tortoise and community.

2. Create Repository in server using command line

svnadmin create "m:\svn_repos

or Using Tortoise

Right click the m:\svn_repos directory and select create repository here

3. Run the Server. By the following command.(Assume subversion is installed at c:\subversion\)

c:\subversion\bin\svnserve.exe --daemon --root M:\svn_repos

4. Right Click any where in the desktop and choose Tortoiseàrepo-browser

Assume you are going to create a new project called monkey, then inside the repo-browser, create the following directory structure

e.g. /monkey/trunk

/monkey/branches

/monkey/tags

5. Open svn_repos\conf\svnserv.conf

i) uncomment the following lines

anon-access = read

auth-access = write

password-db = passwd

Open passwd

i) add username and password pairs there

ii) restart the server

6. Install it as a service (Optional)

Tricky part is: Beware of the space after the = sign

sc create svnserve binPath= "c:\Subversion\bin\svnserve.exe --service -r M:\svn_repos" DisplayName= "Subversion Service" depend= Tcpip

Remark: In 10.11.5.107 Windows 2003 server, I fail to do so, In Windows XP, I succeed.

Steps for Client Parts

1. Install Tortoise and reboot the computer. Reboot is required because Tortoise is integrated into your Windows Explorer.

Note if you are using Windows 2000, you need to download a GDIPlus component from Microsoft It is downloaded for your and is located inside the software folder. The name of the file is WindowsXP-KB957096-x86-ENU.exe.

2. Create a Project directory. E.g. c:\develop\monkey

Right click inside the monkey directory and press Checkout.

In the URL of the repository, enter

svn://10.11.5.107/monkey/trunk

Press Ok to continue

3. Choose the right repository and press ok. You may start to use the subversion.

4. Note that the main idea of subversion is edit-merge (resolve conflict) and commit. It optimistically allows edit of any files and resolves the conflict during the update or commit stage. If you want to prevent this, you may require each teammate to acquire a lock on a file before editing so that others know the file is being edited and do not change that.

Note:

1. Please also see the reference document from downloaded from Internet. It is inside the folder

subversion_installation\ref\subversion_installation

2. Visual Studio has integration support for subversion but Visual Studio Express does not.

留言

這個網誌中的熱門文章

Setup Tomcat HTTPS (with JDK 8 to Java 15) in 2 mins

  Setup Tomcat 9 HTTPS/SSL To have a quick view, you may see the video(s): https://www.youtube.com/watch?v=WDGoF13vhZU 1. Generate Keystore I am using JDK 15 to generate the keystore. But the steps are similar with Tomcat 6 + openjdk 8(as I have tried it before writing this doc) Use “keytool” command to create a self-signed certificate. During the keystore creation process, you need to assign a password and fill in the certificate’s details. D:\apache-tomcat-9.0.38\conf>keytool -genkey -alias tomcatks -keyalg RSA -keystore D:\apache-tomcat-9.0.38\conf\tomcatks When enter the passwords during generation, please make sure the two passwords you entered are the SAME. This is the requirement of Tomcat. Here is the abstract from Tomcat installation  Finally, you will be prompted for the key password , which is the password specifically for this Certificate (as opposed to any other Certificates stored in the same keystore file). You MUST use the same password here as was used f...

Find directories with specific size with Java. Recursive Function Demonstration.

The first function draft was generated by AI ChatGPT 3.5. But its comparative function was wrong and AI needed extra guidance to pinpoint that comparison of object in Java needs extra cares. Then its revised its recursive function. However the recursive function provided was still incorrect as it failed to count all the size of files and files inside the subfolders of a specific folder. Then I determined to finish it myself and here is my version. The DirectorySizeChecker is a Java program that allows users to check the sizes of directories in their file system. The program takes in a directory path and an optional minimum size in megabytes as command line arguments, and outputs the paths and sizes of all directories that are equal to or larger than the specified size. The program starts by setting a default minimum size of 100MB if no size argument is provided. It then checks if the correct number of arguments have been provided, and if the input directory exists and is indeed a direc...

IIS connects to Tomcat. Bug in IIS URL redirect, http2

IIS connects to Web/Application Server Tomcat 9 IIS (Internet Information Server 10) on Windows 2016 server Plesk dropped support for connecting Tomcat from IIS. It is disgraceful. I was so disappointed to learn that. However, another exciting opportunity opened up as I learnt URL rewrite is powerful enough to take over the job and even with more elegant simplicity. So I gave it a try. Even without knowing many of its features, I was able to set it up that one of the sites mysub.yourdomain.com (not real domain, just as an example and I tried a few sites in my server) is pointing to a tomcat localhost at 8080. It sounds good enough. Right?   However, after setting the original site mysub.yourdomain.com for using https. All browsers in desktop platform and Android platform seemed to work. But browser in iOS version failed to open the https. After a few digging, some said in forum that it was a known bug https://stackoverflow.com/questions/49141004/ios-10-3-3-not-working-w...