Archive

Archive for the ‘SVN’ Category

Deploying site with SVN

January 13, 2009 Shaun Seo Leave a comment

Instead of using FTP client to overwrite the entire folder (because you often forget which file needs to be overwritten), you can checkout the contents from the SVN server. This will make deployments quick and easy.

1. go to the root directory of your website.

2. checkout the repo


svn co svn+ssh://user@domain.com/repo/trunk .

3. It’s possible that you need to set ownership to the files.


sudo chown -R : ../html

4. When the folder is setup, just run update from next time.


svn update

Categories: SVN

SVN directory concepts

January 11, 2009 Shaun Seo Leave a comment

1. Trunk: main body of development, originating from the the start of the project until the present.

2. Branch: a copy of code derived from a certain point in the trunk that is used for applying major changes to the code while preserving the integrity of the code in the trunk. If the major changes work according to plan, they are usually merged back into the trunk.

3. Tag: a point in time on the trunk or a branch that you wish to preserve. The two main reasons for preservation would be that either this is a major release of the software, whether alpha, beta, RC or RTM, or this is the most stable point of the software before major revisions on the trunk were applied.

Branching/Tagging in TortoiseSVN is explained at http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-branchtag.html

Categories: SVN

Moving SVN repository

January 11, 2009 Shaun Seo Leave a comment

1. Make a dump of your current repository.

svnadmin dump /path > repository-name.dmp

2. Copy the dump file to the new server/machine.

3. Set up the dump file.

cd /path
svnadmin create repository-name
svnadmin load repository-name< repository-name.dmp

Categories: SVN

svn+ssh access

January 11, 2009 Shaun Seo Leave a comment

After setting up a SVN server at MediaTemple I tried to access it with TortoiseSVN. It kept on asking for passwords even though I’ve entered in the correct one.

1. TortoiseSVN will ask for passwords multiple times depending on the number of different domain folders.
2. Upgrading to the newest version of TortoiseSVN [TortoiseSVN 1.5.6, Build 14908] solved the problem of the program crashing.

Setting the SSH client property stopped the multiple password checks.
C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -l username -pw password

Categories: SVN

Recursively deleting .svn folders in Windows

September 20, 2008 Shaun Seo Leave a comment

Save the following text as svn.reg: (Note: it’s likely that the double quotes are copied as some unicode character. Replace them to the proper double quotes.)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@=”Delete SVN Folders”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@=”cmd.exe /c \”TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \”%1\” %%f IN (.svn _svn) DO RD /s /q \”%%f\” \”"

 

run this file to add the components to the registry.

Now there should be “Delete SVN Folders” option in the right-click menu.

This recursively deletes all the .svn folders in the designated folder

Categories: SVN