Dec 18, 2007

Subversion Update with Subeclipse on Leopard

Posted by: Jon Clausen

I've been working on an update for a client site which involves the cleanup of a bunch of unnecessary files in scores of directories under subversion control. In order to ensure the files were deleted properly, I used CFDIRECTORY, along with CFEXECUTE, to safely remove those files from both my development machine and from the SVN repository like this:

<cfloop list="#uselessFiles#" index="i">
<cfif fileExists(directoryPath & "/" & i)>
<cfexecute name="svn" arguments="delete --force #directoryPath#/#i#"></cfexecute>
</cfif>
</cfloop>

My machine was running on SVN version 1.4.1, however the JavaHL bindings (which are used by Subeclipse) which were distributed for that version were only compatible up to Subversion 1.2. This meant that when I used the terminal or CFEXECUTE to manipulate files under SVN control, Subeclipse compatibility on the directories with affected files was lost.

One potential solution for this problem was modifying the Workspace Preferences > Team > SVN preferences to select SVNKit as it's interface rather than the JavaHL bindings. On Leopard, however the SVNKit uses the Keychain for SVN authentication. This would be fine for most, however I use password protection on my OS X Keychain, however, which meant that SVNKit required me to enter my keychain password whenever a connection to the SVN server was made. While not critical, this solution made working with Subeclipse cumbersome - unless I chose to remove the keychain password.

It turns out, however, that the most recent Subversion binary for OSX, 1.4.4 (full list of binaries for Win/Linux), includes an updated version of the JavaHL bindings.

After downloading and installing the 1.4.4 update Subeclipse, using JavaHL as it's SVN interface, now has full compatibility with Subversion 1.4. This means I can use the command line again, and in this particular case CFEXECUTE, without fear of breaking compatibility with Subeclipse, which is definintely worth the upgrade!

 
Continuing the discussion ...
Comments
There are no comments at this time.
Post a Comment
Name

Email ( optional )

Your URL (optional)

Remember my information ?
Yes No
Subscribe to this comment thread ?
Yes No

Input the letter/number code in the image to verify you're a human and not a spammer.

Subscribe to this thread without commenting

Search

About The Author

Who 

Recent Comments

  • Jon Clausen: <  @Jeff - It's been a couple of years now since...
    [View]
  • Rob: <  What problems do you have with the free FileM...
    [View]
  • Jeff Coughlin: <  For years I've used csdiff on the PC (absolut...
    [View]
  • Jon Clausen: <  @Priyank - Are you speaking of a problem brow...
    [View]
  • Priyank jain : <  Hi everybody,my application was running fine ...
    [View]
  • Jon Clausen: <  Hi Mike,I actually did when I wrote this post...
    [View]
  • Mike: <  Add it to the flicker account :-) http://www...
    [View]
  • Jon Clausen: <  Sana,The directory "jrunscripts" needs to be ...
    [View]
  • Sana: <  Options FollowSymLinksRewriteEngine on#Escape...
    [View]
  • Anthony: <  Just want to say thank you. I had this issue...
    [View]