[TxMt] Tunnelling SVN

Rob McBroom textmate at skurfer.com
Thu Mar 22 13:27:03 UTC 2007


On Mar 21, 2007, at 7:30 PM, Matthew Law wrote:

> I'm not familiar with mod_svn.  If it will allow us to
> connect as a network drive from the finder, then
> add,edit and delete files in TxtMate and perform the
> subversion commands in the SVN bundle without falling
> over, I'll go for it...?

I have tried to use Subversion with Samba as well. If I understand  
your question correctly, it won't matter if you use svn://, svn 
+ssh://, or http:// to interact with the repository. The problem  
you're running into is a function of how the *working copy* is  
accessed, not the repository. If the working copy is stored locally,  
it generally works fine, but if the working copy is stored on a samba  
filesystem, there are things that will break when after you commit  
changes and svn tries to update the working copy.

I think we have one project where we access the working copy via DAV  
and subversion commands work (we still use svn+ssh to interact with  
the repository itself) but DAV is so slow, it's almost unusable with  
TextMate's project window.

If you're talking about modifying the Subversion bundle in TextMate  
to always run `ssh remote_server svn blah files` instead of `svn blah  
files`, you could probably do it, but then your Subversion bundle  
would only ever be useful for that one repository. Something else you  
might experiment with: There's a `TM_SVN` variable that TextMate uses  
to locate Subversion and you can set variables per project. Perhaps  
instead of using the usual `/usr/local/bin/svn`, you could set  
`TM_SVN` for that project to something like this:

     ssh -t remote_server /usr/bin/svn

I would be very surprised if that worked smoothly, though.

---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.






More information about the textmate mailing list