I had a problem recently with TextMate's svn integration and finding the solution taught me some interesting things about Subversion and TextMate that I'd thought I'd share:
First -- TextMate fails with a non-helpful error message if you don't cache svn passwords. For a long time I didn't even realize that my two problems were related. I had to type in my username and password for svn every-time (even though I wasn't using svn+ssh). And TextMate exploded when I tried to see the svn log of a file. Turns out one causes the other -- obvious in retrospect.
Second -- Subversion keeps passwords and configuration files inside a .subversion folder inside the user's home directory. Try looking for a strangely named file inside ~/.subversion/auth/svn.simple for cached passwords. And there's a config file at ~/.subversion/config If you want to stop this caching of passwords you can set:
store-passwords = no
inside this file.
Third -- Subversion will fail to cache silently if the permissions are not right on the folder where it attempts to save the username/password. This was the sticking point for me -- everything I tried failed and I wasn't getting any helpful error messages (and none from the command line svn client) but then I noticed that my ~/.subversion/auth/svn.simple directory had different permissions (and a different modified time) than the other folders next to it. One simple chmod command later and I was caching passwords and using TextMate's svn integration like nobody's business.
Fourth -- Yes I still use Subversion -- feel free to leave me a comment telling how much happier I'd be with git.
Resources:
Subversion and TextMate
Short version of Subversion's password caching
Longer version
Subscribe to:
Post Comments (Atom)
About Me
Obtiva (current job)
ThoughtWorks (old job)
Object Mentor (apprentice)
Apprenticeship at Object Mentor Blog
ThoughtWorks (old job)
Object Mentor (apprentice)
Apprenticeship at Object Mentor Blog
Blog Archive
- July 2009 (12)
- June 2009 (19)
- May 2009 (12)
- April 2009 (12)
- March 2009 (4)
- January 2009 (1)
- December 2008 (1)
- November 2008 (12)
- October 2008 (2)
- September 2008 (10)
- August 2008 (5)
- June 2008 (3)
- May 2008 (3)
- April 2008 (2)
- March 2008 (3)
- February 2008 (2)
- January 2008 (5)
- November 2007 (1)
- October 2007 (1)
- September 2007 (1)
- August 2007 (6)
- July 2007 (3)
- June 2007 (4)
- May 2007 (5)
- April 2007 (4)
- March 2007 (10)
- February 2007 (13)
- January 2007 (7)
Categories-
- Code (61)
- Rails (48)
- Apprenticeship (33)
- Ruby (25)
- commentary (25)
- RSpec (20)
- Metrics (17)
- metric_fu (13)
- Flog (9)
- RailsConf2009 (8)
- complexity (8)
- RubyConf2008 (7)
- test_coverage (7)
- Bugs (6)
- Mocking (6)
- craftsman_swap (6)
- git (6)
- not_code (6)
- Amazon (5)
- refactoring (5)
- ActiveRecord (4)
- Linux (4)
- LoneStarRubyConf2008 (4)
- Saikuro (4)
- churn (4)
- design (4)
- Fixtures (3)
- JRuby (3)
- RailsConf2007 (3)
- Rake (3)
- Rcov (3)
- Svn (3)
- legacy_code (3)
- Flay (2)
- GLSEC (2)
- Math (2)
- Mingle (2)
- Obtiva (2)
- SQuiD (2)
- TextMate (2)
- Windows (2)
- WindyCityRails (2)
- XP (2)
- javascript (2)
- testing (2)
- Agile2009 (1)
- DUST (1)
- EVDO (1)
- IO (1)
- MacRuby (1)
- OSX (1)
- Routes (1)
- RubyWorks (1)
- Tomcat (1)
- attachment_fu (1)
- cache-fu (1)
- citcon (1)
- iPhone (1)
- mac (1)
- memcached (1)
- ord_sessions (1)
- pairing (1)
- restful_authentication (1)


1 comments:
I would leave you a message telling you to use Git if I weren't already committed to leaving you a message telling you to use Bazaar. Use Bazaar!
Post a Comment