问题
I've just upgraded my SVN repository from 1.6 to 1.7. A major change to the repository format in 1.7 is that the ".svn" folders are no longer stored in each subdirectory; only in the root folder of the repository.
Unfortunately this seems to confuse the JCL SVN integration I have been using. It seems to think my files are not under source control.
Is there any Delphi SVN integration that works with 1.7 now or that has plans to support it in the near future?
I am using Delphi 2010.
UPDATE
There is a bug report here for the JCL SVN integration. Current status is "confirmed".
回答1:
Even Delphi XE2 seems to have some problem with this, even with 3 updates since the release, they never update the subversion client and I have to do it myself.
For the most part, I use tortoiseSVN, but collabnet svn commandline client is what comes with Delphi now. I haven't used the JEDI stuff, we were using Source Safe and the visualconnexion connector until just recently. But, FWIW, you might want to install collabnet's subversion client and overwrite the DLL's distributed with JCL SVN. That worked for me with XE2 (although I don't believe it's the preferred method).
回答2:
This has now been fixed in the latest development version of jcl. I now have the "Version Control" menu working correctly again in D2010. This is what I did:
Warning: Follow this at your own risk. There might be problems with this approach I am not aware of. We don't use JCL or JVCL much in our code, so if anything breaks it's not the end of the world. YMMV.
- Download the latest daily build of JCL from http://jcl.sourceforge.net/daily/
- Uninstall the old version of JVCL, by running the install.bat and asking it to Uninstall, but to not erase the existing folders.
- Uninstall the old version of JCL, in the same way.
- Run the installer for the new version of JCL.
- Restart Delphi
I wanted to still link to the old (stable) version of JCL and JVCL, so I removed all references to the new version of JCL in the IDE's library path and replaced them with the equivalent directories from the stable version.
(Note: According to http://wiki.delphi-jedi.org/index.php?title=Repository, JCL development is actually done in separate branches and the daily builds are as stable as the "stable" releases)
回答3:
In this folder (\Embarcadero\RAD Studio\9.0\bin\subversion) there is a readme.txt:
"
Information about bin/subversion.
This directory contains the Subversion .dll files used by the IDE's Subversion integration. These files can be upgraded by going to www.collab.net and downloading the subversion client and extracting it to this location. Other subversion installations will not be used be default. The IDE only looks in this location, this behavior can be changed by setting the registry string SvnDllDir under the Subversion key to the location of your Subversion installation. This will not work with all Subversion installation because not all installation use the same .dll names. "
I just copy the subversion dir from "RAD Studio\12.0" and it works.
来源:https://stackoverflow.com/questions/8751997/delphi-svn-integration-that-works-with-svn-1-7