Subversion Exclusive Checkout and Subversion Plugin for Delphi

Currently there is a function that allows you to perform exclusive verification in SVN?

Is there a good plugin for Delphi that allows you to access through the IDE?

+6
svn delphi svn-checkout
source share
7 answers

SVN has the concept of " locking ", which roughly corresponds to an exclusive check. For example, in TortoiseSVN, this is displayed through the lock and block lock menu entries.

The JCL contains an SVN versioning expert who works quite well. Among other things, tt gives you access to locking functionality from the IDE.

+11
source share

TortoiseSVN can be added to the Delphi tool menu . I have not tried this myself, since I am happy to use it as an extension of the explorer.

Regarding the exclusive check, I assume that you mean that only one person can edit it at a time? This is not a Subversion idea, the idea is that you have working copies, then check your changes. Then it will try to merge your changes (usually this works most of the time). If there are conflicts, you will need to resolve them manually.

+8
source share

I believe that one of the reasons people sometimes ask for blocking items in the Subversion repository is because they have DFM Delphi stored in binary, which makes commit / merge difficult.

An alternative to changing DFM, etc. for text is the use of Scooter Software Beyond Compare.

Beyond Compare is written in Delphi and initially knows how to read binary DFMs. This means that then it becomes less of a problem (or even not) whether your DFMs are saved in Subversion in binary or text format. Beyond Compare V3 also makes 3-way merge, which makes it very easy to merge multiple commits, etc. Even ignoring the possibility of distinguishing between binary DFMs, it is still much better than TortoiseSVN. I can highly recommend it and it is very inexpensive.

Currently, the only thing I have blocked in our repository is libraries like COM (* .tlb and related _TLB.pas files).

+2
source share

Regarding exclusive checks. This can be done, but itโ€™s a pain and is not worth the time. If you have dfms saved as binary, convert them to text.

Regarding delphi addins, I have a post in Delphi addins for subversion .

I am using jedi jcl and TortoiseSvn .

There are also Delphi svn and Delphi addin in for Tortoise svn that I know of.

+1
source share

I may be naive, but why does anyone want to go to the huge problems of merging their changes? Merging can be a simple matter if programmers edit text files whose contents are easy to understand, and therefore can be combined due to the fact that programmers know the meaning of the changes. However, if you use SVN with MS Visual Studio, where changes in one file often occur in other files that you did not know about, and where the encoding of information in such files may be completely unknown to programmers (who therefore have no idea how interpret much less merging of such files) and may even be binary, why are you faced with huge problems and risk editing several people at the same time?

The locking paradigm is simple. Only one person is edited at a time. A merger is never required. Programmers do not need to know the encodings of (possibly binary) files that they donโ€™t even understand what they are changing. No one can stomp on anyone for a change. Lock (i.e., default lock) sounds much preferable to me.

+1
source share

What do you mean by "exclusive verification"? Do you mean that after you leave, no one can check?

This is called blocking and disruptive ability (see Locking ), although this is not recommended at all as the goal of the version control allows several people to work on a versioned element at the same time.

0
source share

For the first part, I used Visual Source Safe, which supports blocking (you should check before use), SVN has a blocking command, but against this concept, you need a little time to get used to it, and you will never use a blocking command again.

In the second part of your question, TortoiseSVN can be used as an external tool, or you can make it work with a file browser bundled with Delphi 2007 and higher, and you can use IBrowser , which work with older versions.

and Subversion Add-ins for Delphi generalize the available SVN plug-ins for the Delphi IDE, in addition to SourceConneXion , which is a commercial product.

0
source share

All Articles