logo phpwebgallery
"simplement puissant"
Dernière version:
1.7.2 - 24 juillet 2008
PhpWebGallery
 Documentation

Install and use SubVersion on Windows XP/Vista

Download:

  • PuTTY(Only PuTTYGen, Pageant et Plink are mandatory)

AND

⇒ 32 Bit TortoiseSVN-1.4.8.12137-win32-svn-1.4.6.msi Installer

Installation & Configuration after gna inscription:

  • Step 1: Install Putty (with installer programm or use directly executable files)
  • Step 2: Install svn-win32 (with or use directly executable files) or/and TortoiseSVN (with installer programm)
  • Step 3: Configure svn
  • Step 4: Generate key with PuTTYGen [type SSH-2 RSA]
  • Step 5: Save key in private file with PuTTYGen
  • Step 6: Go to gna site in order to reference your key

Svn configuration

It’s necessary to change svn file configuration for a optimal use.

On windows XP, the configuration file is located on folder “C:\Documents and Settings\<USERNAME>\Application Data\Subversion\” and it’s named “config”.

On windows Vista, the configuration file is located on folder “C:\Users\<USERNAME>\AppData\Roaming\Subversion\” and it’s named “config”.

On “config” file:

  • search section [miscellany] and set:
[miscellany]
enable-auto-props = yes
  • search section [auto-props] and set:
[auto-props]
*.php = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.tpl = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.css = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.sql = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.html = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.js = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.htc = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.txt = svn:eol-style=LF;svn:keywords=Author Date Id Revision

Use classic svn:

TortoiseSVN:

  • Step 1: You can use TortoiseSVN with explorer (CheckOut, ...)

svn-win32:

  • Step 1: Add svn-win32 bin directory in path environment variable
  • Step 2: You can use command-line svn

Use svn+shh:

TortoiseSVN:

  • Step 1: Launch pageant and select your private key file (you can double-click on file ppk)
  • Step 2: You can use TortoiseSVN with explorer (CheckOut, ...)

svn-win32:

  • Step 1: Launch pageant and select your private key file (you can double-click on file ppk)
  • Step 2: Add svn-win32 bin directory in path environment variable
  • Step 3: Add PuTTY bin directory in path environment variable
  • Step 3: Set environment variable SVN_SSH with plink (set SVN_SSH=plink.exe)
  • Step 4: You can use command-line svn

See:

Batch Script Example

@echo off
 
"C:\Program Files\PuTTY\pageant.exe" D:\Dev\Init\PrivateKey.ppk
 
cd /d D:\Dev
 
set path=%path%;C:\Program Files\svn-win32\bin;C:\Program Files\PuTTY
set SVN_SSH=plink.exe
 
svn co svn+ssh://ruru@svn.gna.org/svn/phpwebgallery/trunk BSF
 
en/svn_ssh_win32.txt · Dernière modification: 2008.05.22 23:31 par vdigital
 
Driven by DokuWiki - RSS notification feed