Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I start with working Sub-Version + Delphi? [closed]

Tags:

svn

delphi

I'm new to this SCM, but since SVN is gaining popularity I was going to give it a try.

Things I noticed:

  1. SVN is only the backbone of the SCM, no front-end?
  2. Why is there several versions of Windows Binaries? Tigris? SlikSVN? VisualSVN?
  3. Do I need a Web Server like Apache in order to use SVN?
  4. There's dozens of front-end, Tortoise, WinSVN, etc... Which one is recommended?

The whole thing is rather confusing and I got no idea where to start. I'm using Delphi and would like to use it to store my source files.

Update 1: Seems I got it working using the "file:///" protocol, thanks. Now, how do I configure it as a server with client PCs.

like image 801
Atlas Avatar asked Dec 16 '08 05:12

Atlas


3 Answers

Here's a great guide for integrating TortoiseSVN with Delphi's "Tools" menu.

This site shows how to add the following into the IDE:

  1. svn Commit: Opens the TortoiseSVN commit window.

  2. svn Diff: Shows diffs for the file currently being edited. (If you've configured an external diff viewer like Beyond Compare, this will use it.)

  3. svn Modifications: Opens the TortoiseSVN modifications window, which shows a list of all modified files.

  4. svn Update: Updates your working copy with the latest changes from the repository.

If you don't have Ruby installed (as the guide suggests using), simply replace it with a simple online batch file instead:

"c:/program files/tortoisesvn/bin/tortoiseproc.exe" /command:%1 /path:%2 /notempfile

Then create the Tools items with:

Program: c:\windows\system32\cmd.exe

Parameters: /C C:\SvnPas\Utils\Batch\SvnCmd.Bat diff $EDNAME $SAVEALL

like image 153
Mick Avatar answered Oct 20 '22 06:10

Mick


This is the fastest way to do get started

Download, install and setup VisualSVN Server. It's free and well integrated into windows. Add users and groups → create your repository.

Download and install TortoiseSVN client. It's free and well integrated into windows.

Make a dir, right click → "SVN Checkout" → Enter your rep on your SVN server. Copy files in that dir → right click → "SVN Commit".

Right clik on DCU file → rigth click → "Add to ignore list" → "*.dcu";

You can ignore DSK, DOF, CFG, LOCAL extensions.

Work on your project → do SVN Commit from time to time; read more abut SVN.

If you want to fetch what other people changed: right click → "SVN Updte".

like image 6
dmajkic Avatar answered Oct 20 '22 07:10

dmajkic


SVN is only the backbone of the SCM, no front-end?

Basically, SVN is a console application. If you don't like to type all the commands in console, use a SVN front-end.

Why is there several versions of Windows Binaries? Tigris? SlikSVN? VisualSVN?

Each of them customize SVN installation. For example, VisualSVN Server installs SVN + Apache on Windows, by asking you a few questions in wizards, and configures SVN and Apache based on your answers automatically.

Do I need a Web Server like Apache in order to use SVN?

No, it is not necessary.

There's dozens of front-end, Tortoise, WinSVN, etc... Which one is recommended?

In my opinion, for Windows, TortoiseSVN is the best.

The whole thing is rather confusing and I got no idea where to start. I'm using Delphi and would like to use it to store my source files. First of all, take a look at SVN Help which is published as an electronic book, and explains things very well. If you are using TortoiseSVN, I recommend you reading its help file, because it integrates SVN help into its help file.

For Delphi integration, you can use TSVNWizard which is an open-source Delphi expert bringing TortoiseSVN interface into Delphi IDE: http://delphiaddinfortortoisesvn.tigris.org/tsvnWizard.pas

like image 3
vcldeveloper Avatar answered Oct 20 '22 05:10

vcldeveloper