Difference between revisions of "TortoiseSvn"

From Lazarus wiki
Jump to navigationJump to search
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
Check out a working copy using TortoiseSVN, go to Run and paste the command below:
 
Check out a working copy using TortoiseSVN, go to Run and paste the command below:
  <nowiki>tsvn:http://svn.freepascal.org/svn/lazarus/trunk</nowiki>
+
  <nowiki>tsvn:https://svn.freepascal.org/svn/lazarus/trunk</nowiki>
  
 
To get Lazarus for the first time:
 
To get Lazarus for the first time:
Line 16: Line 16:
  
 
* In the next dialog you enter the URL for Lazarus server source:
 
* In the next dialog you enter the URL for Lazarus server source:
  <nowiki>http://svn.freepascal.org/svn/lazarus/trunk</nowiki>
+
  <nowiki>https://svn.freepascal.org/svn/lazarus/trunk</nowiki>
 
* Watch how TortoiseSVN imports the file tree from the server. This can take some time to complete.
 
* Watch how TortoiseSVN imports the file tree from the server. This can take some time to complete.
  
Line 30: Line 30:
 
== Troubleshooting ==
 
== Troubleshooting ==
 
TortoiseSvn includes a svn command line version, too. If you get an error
 
TortoiseSvn includes a svn command line version, too. If you get an error
* svn command not found" or similar
+
* svn command not found
most probably you do not have svn.exe in your PATH environment variable. The following steps should fix this problem:
+
or similar then 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===
 
===Temporarily add svn directory to path===
Line 52: Line 52:
  
 
{{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.}}
 
{{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.}}
 +
 +
 +
[[Category:Install]]
 +
[[Category:Revision control]]

Latest revision as of 14:10, 30 December 2018

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:https://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:
https://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

TortoiseSvn includes a svn command line version, too. If you get an error

  • svn command not found

or similar then 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.