Difference between revisions of "TortoiseSvn"

From Lazarus wiki
Jump to navigationJump to search
Line 29: Line 29:
  
 
== Troubleshooting ==
 
== Troubleshooting ==
This mostly applies to Windows but could apply for other platforms as well.
 
  
 
===Error "svn command not found" or similar===
 
===Error "svn command not found" or similar===
Line 41: Line 40:
  
 
{{Note| The directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.}}
 
{{Note| The directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.}}
 
  
 
====Permanently add svn directory to path====
 
====Permanently add svn directory to path====
 
While this section is optional, it saves you from changing the path all the time.
 
While this section is optional, it saves you from changing the path all the time.
For Windows 98 or lower, you can add the line above (or similar) to your C:\autoexec.bat file near the end.
+
You can add this directory to your PATH by:
 
 
For Windows 2000 or greater you can add this directory to your PATH by:
 
  
 
# Right-Clicking on "My Computer"
 
# Right-Clicking on "My Computer"

Revision as of 13:54, 4 November 2012

Usage

TortoiseSVN integrates itself with Windows Explorer. After installation, all commands are available from inside Windows Explorer through right-clicking on a directory or file.

Check out a working copy using TortoiseSVN, go to Run and paste the command below:

tsvn:http://svn.freepascal.org/svn/lazarus/trunk

To get Lazarus for the first time:

  • Open Windows Explorer
  • Create a directory where you want to put the files from the SVN server
  • Right click on the newly created directory
  • Select SVN Checkout... on the popup menu

TortoiseSVN Main Menu.png

  • In the next dialog you enter the URL for Lazarus server source:
http://svn.freepascal.org/svn/lazarus/trunk
  • Watch how TortoiseSVN imports the file tree from the server. This can take some time to complete.


To update Lazarus sources:

  • Open Windows Explorer
  • Right click on the source directory
  • Select SVN Update on the popup menu

TortoiseSVN Main Menu Update.png

Troubleshooting

Error "svn command not found" or similar

Most probably you do not have svn.exe in your PATH environment variable. The following steps should fix this problem:

Temporarily add svn directory to path

  1. Locate svn.exe using the Find Files feature of your Start menu.
  2. Once you have located svn.exe you need to add the directory it is in to your PATH.

As an example: From the command prompt type:

set PATH=%PATH%;"C:\Program Files\TortoiseSVN\"
Light bulb  Note: The directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.

Permanently add svn directory to path

While this section is optional, it saves you from changing the path all the time. You can add this directory to your PATH by:

  1. Right-Clicking on "My Computer"
  2. Select "Properties"
  3. Choose the "Advanced" tab.
  4. Click the "Environment Variables" button.
  5. Locate the "Path" line in "System Variables" and add: ;"C:\Program Files\TortoiseSVN\" to the end.
Light bulb  Note: Your directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.