Tag Archive for 'svn'

05
Sep

SMB file sharing doesn’t support Subversion on Mac OS X

I’ve received several queries about the SMB patch that I mentioned in my svn-on-osx post. Unfortunately, when I went hunting for the patch the second time around, I wasn’t able to find it. But I was finally able to solve my OSX/Subversion/scplugin problems by using the svn+ssh transport, thus:

svn+ssh://username@some.server/path/to/repository

Once I gave up on SMB file sharing, I’ve had no trouble with scplugin or Subversion on Mac OS X.

20
Apr

Testing scplugin on a local repository

On some earlier posts (tagged scplugin) I was trying to get scplugin working on my Mac (OS X 10.4.6). It seems like the problem may be due to subversion (svn) failing to communicate with my SMB-based repository. To test that, I made a local repository and created a test project within it.

First, let’s make sure DarwinPorts is up-to-date:

$ port sync Error: /opt/local/bin/port: port sync failed: sync failed doing rsync

Doh! I always forget to sudo that command…

$ sudo port sync Password: $ sudo port selfupdate DarwinPorts base version 1.200 installed Downloaded DarwinPorts base version 1.211 Configuring, Building and Installing new DarwinPorts base selfupdate done! $ port version Version: 1.211

(Just because I’m paranoid…)

Okay, now let’s see what version of svn I have installed, and compare that to what’s available from DarwinPorts:

$ svn −−version svn, version 1.3.0 (r17949) compiled Apr 4 2006, 11:47:42 $ port info subversion subversion 1.3.1, devel/subversion (Variants: mod_dav_svn, no_neon, no_bdb, mac-os-x-server-mod_dav_svn, tools)

Yep, the 1.3.1 version has made it into DarwinPorts so let’s upgrade that:

$ sudo port upgrade subversion −−−> Fetching subversion yadda yadda yadda −−−> Installing subversion 1.3.1_0 −−−> Activating subversion 1.3.1_0 −−−> Cleaning subversion $ svn −−version svn, version 1.3.1 (r19032) compiled Apr 20 2006, 15:31:38

(Paranoia again…)

Cool, the tools are up-to-date, so now it’s time to make a new local repository.

$ svnadmin create /path/to/local/repository $ svn import -m “Creating testproj” testproj/ file:///path/to/local/repository Adding testproj/some_file Committed revision 1.

Now let’s checkout a copy of the project and see how it looks in Finder.

$ svn checkout file:///path/to/local/repository/testproj svn: URL ‘file:///path/to/local/repository/testproj’ doesn’t exist

Oops, looks like I screwed up the repository import. I’ll just check out the whole repository for now, and rtfm for help with project importing later.

$ svn checkout file:///path/to/local/repository/ A svn_repository/some_file Checked out revision 1.

A quick perusal with Finder doesn’t show any visual svn status indicators, but after I made a change to the file I got to see scplugin’s “red bang” over the file icon, indicating that the file was out of sync with the repository. Woo hoo! Right-clicking or control-clicking on the changed file presents me with a Subversion context menu, from which I selected commit:

Sending some_file Transmitting file data . Committed revision 2. Process finished with exit status 0.

That looks pretty good. Unfortunately, scplugin hasn’t changed the status indicator in Finder–it’s still showing the red bang, even though the working copy and the repository are now in sync. Relaunching Finder doesn’t change this. :( Hmm…

Well, that’s some progress–at least subversion is working! I’ll play with scplugin some more and see what I can find out.

04
Apr

Mac OSX Subversion with an SMB repository (again)

I just applied the Mac OSX 10.4.6 update, hoping that it would solve my problems viz a viz committing changes to an SMB-based subversion repository. Alas, I still have the same trouble with svn commit. In addition, the new update undid scplugin’s changes to Finder which indicate a file’s svn status (e.g. current, newer working copy, etc). I guess that’s not such a big deal, since the svn status is useless without the ability to commit my changes. :(

Version 1.3.1 of svn came out a day or two ago, so let’s see if that does the trick.
Downloading Mac binary svn client v1.3.1
Installing…
Testing…


515$ svn –version
svn, version 1.3.1 (r19032)
compiled Apr 4 2006, 00:30:54

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles ‘http’ scheme
- handles ‘https’ scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles ’svn’ scheme
* ra_local : Module for accessing a repository on local disk.
- handles ‘file’ scheme

516$ svn commit -m ‘Changed script to be user-independent’ my_script
subversion/libsvn_client/commit.c:873: (apr_err=5)
svn: Commit failed (details follow):
subversion/libsvn_subr/io.c:2199: (apr_err=5)
svn: Can’t write to file ‘/Volumes/svn/grading_system/db/transactions/4-7.txn/rev’: Input/output error

ARRRRRGH!

Oh well, I guess it’s time to try the (old) patch for SMB access, which means building Subversion from source. Darwin ports collection, here I come!

11
Mar

Progress on scplugin?

Thanks to Stu (no URL) and Ant, I think I’ve made some progress on scplugin! For some background, see my post on Subversion on Mac OSX and my subsequent attempts to get SCPlugin to work with Finder.

After trying Stu’s and Ant’s suggestions, I now get a Subversion menu when I control-click or right-click on a file/directory in the Finder. Woo hoo! Everything looks good, too. If I open the Subversion menu on a file which isn’t part of a svn working copy, only the Checkout and About menu items are available (as expected). Subversion working copies show the full menu (or whatever is appropriate). However, there are two things that still seem to be broken: the svn status indicators (icon overlays?) aren’t showing up in Finder, and I seem to have hosed the connection to my repository. Doh!

We’re using smb file shares to host our repository. When I first set this up, I connected to the file share (⌘K in Finder) and checked out a working copy of the repository. I could only work via the command line, but everything worked. Fastforward to a few days ago (when Stu and Ant dropped comments). I’m now trying to use scplugin again (not the command line), and all of the sudden nothing is working. It finally dawned on me that perhaps I should try the command line again. It turns out that when I first created my working copy, I must have somehow given a connection-specific smb string instead of the server name followed by the share. Here are the errors I’m getting:

svn commit -m 'Changed script to be user-independent' my_script subversion/libsvn_client/commit.c:873: (apr_err=180001) svn: Commit failed (details follow): subversion/libsvn_ra_local/ra_plugin.c:285: (apr_err=180001) svn: Unable to open an ra_local session to URL subversion/libsvn_ra_local/split_url.c:125: (apr_err=180001) svn: Unable to open repository 'file:///Volumes/server-3/my_proj/trunk/my_script’

The /Volumes/server-3 bit is where the problem lies–It should be /Volumes/sharename, instead of the third connection to this server. I did some hunting around on the net and found out how to fix broken svn repository references: use svn switch --relocate, such as:

svn switch --relocate file:///Volumes/server-3 file:///Volumes/sharename workingcopyroot

or so I thought. :( Now I’m getting the following error:

svn commit -m 'Changed script to be user-independent' my_script subversion/libsvn_client/commit.c:873: (apr_err=5) svn: Commit failed (details follow): subversion/libsvn_subr/io.c:2199: (apr_err=5) svn: Can't write to file '/Volumes/sharename/my_proj/db/transactions/3-1.txn/rev': Input/output error

Bummer. It may be time for a bug report…

21
Jan

Subversion/Finder integration on Mac OSX

I found a lead on why Subversion may not be working with Finder in Mac OSX (Tiger, version 10.4.4) on the System Preferences... tool. There is now an “SCPlugin” item on System Preferences. Open this up and you’ll find a checkbox labeled Enable Finder Integration (which was unchecked on my system). I checked this button, but there was no visible change on any of my Subversion-controlled files. I relaunched Finder, but still no indication of Subversion status on my files. It may be that I need to specify the Subversion Executable on the SCPlugin preferences, but there is no way for me to type in the path–there is only an Open button which launches a Finder-style widget, and I can’t figure out how to navigate to /usr/local with it.

Wait, maybe it is working, sort of… I just right-clicked on a Subversion-controlled file and found the “Subversion” context menu, but none of the operations seem to be doing anything. I’ll have to see if I can figure out how to type in an absolute path in Finder for the svn executable.

07
Jan

Subversion on Mac OSX not working?

I was finally going through Chris J. Davis’ article, SVN on MacOS X. I downloaded the Subversion package to my Mac and it works fine via the command line, but I ran into trouble with scplugin, (the tool which bolts SVN on to the Finder.)

The first (easy) problem was that the download link for the scplugin binary is out-of-date. It’s now available here, on the Documents & files page.

The second problem: SCPlugin doesn’t seem to work. I’ve restarted the Finder a few times, but I can’t find a Subversion context menu anywhere. This is a bummer, but I can work from the terminal app for a while I guess. I may even have a chance to fiddle with this some more over the weekend.

In case anybody wants to know, I’m running MacOS X 10.4.3 on a 17″ PowerBook G4, svn version 1.3.0 and SCPlugin revision 269.




September 2008
M T W T F S S
« Aug    
1234567
891011121314
15161718192021
22232425262728
2930  

Tags

abramoff accessibility acetylene activism aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy anti failure any browser apache apple applescript arden arcade arden park ariana arnold ashland astronomy attic attika audio avid reader backup baen bart bathroom bbq bee beef begonia bgg bike bike hikers bike journal bikejournal biketalk bill oreilly bittorrent blacklist blog bloggercode blogroll blueberry boardgamegeek boardgames bonjour book bookcrossing boot failure bootcamp borderline chaos bugmenot bush business card cabinetry caira caitlin california candamir caroline carpet cat cateye cdrom celebration cellular phone century cheese chicken chico chimney chinese chipotle chocolate christmas chumby city bikes civilization cjd claire club club fed co op coconut coffee comfort food community computer concord congress conquest conservation consumer reports copyright costco crazybikerchick crepe crock pot cruftbox css csus curl currency custard cvntrak dagoba daniel goetz darwinports datarescue date format death delicious monster democracy now Democrat demolition dessert dickens diff disaster discrimination discworld dishwasher diskwarrior dixie belle dock doors downing street memo drm dryer drywall dump ed burke eff eggs eject election electric car electric truck electrical electricity elvgren email energy efficiency eric meyer esr etext euthanasia facebook family faq faux news feed feedreader fence finder firefox first4internet first amendment fishmeal flash flickr flooring foreign exchange foundation fox and goose framing freebsd freedback fyq garage garden geek geotag geourl gnutar go gonuls google google earth google maps gpl gracenote graywater greek green group concat gtd gunthers gutters gwbush gymnastics hacking halloween handspring hardwood harry potter headmeta high speed photograph high tech inv hoax hobbies hobby hodgins holiday holly home power magazine horcrux houseblogs how to html humor hvac ilovejackdaniels impeach inspection insulation intel internet ipod ipodder iq iraq isight itunes ivins iwantsandy java city javascript joint chiefs joseph jott journalized blue judges cup kctc khs kimkerry kitchen kyocera la salles la times labor landscape laundry law leatherbys legal lego leopard liberal library linkedin ljurban lodi logic logo lungren maaloufs mac macbook mailinator malware map marin markdown mason media media clip media reform meetup metric mexican microsoft mike comfort military milonic mindstorms mlk model railroading modoc hall monterey morning sedition motorcycle movie moving munchkin murray mushroom music mynetflix mysql naked lounge nerd score netflix network new urbanism new year nofollow nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palm panasonic parallels party patch peak adventures peak oil pear pedestrian village perl petaluma php ping pingback pingomatic pingomation pingqueue pirate pl sql planet bike plasma playroom entertainment plugin plugin:preview theme plugin:text control plugin:ultimate tag warrior plumbing podcast podsite politics portupgrade potato powerbook printer programming project gutenberg pryde punk puzzle qiana quilt quilt shop quiz quote r5 records racism radio railroad recent comments recipe redalt remodel resaurant resolution restaurant restore review richmond rio americano robotics roger niello ron montana roof rootkit rss sacbee sacog sacramento sacramento spotlight magazine salad san francisco sandwich santa cruz scam scandal school days scplugin security session report shakespeare shuffle sigma siriradha sitemap snl snopes social social network software soma somafab sonicchicken sonicchicken blog sony spam spam karma spellcheck spinach spirit spoiler etiquette spring hill cheese sql sqlserver stairs standards statcounter stephen king stop loss stucco stunt subversion sudoku superbowl superhero supreme court sushi svn sysadmin tacoma tags plugin takara technology telephone television template terms and conditions textcontrol thai kitchen thanksgiving theater theme theme:borderline chaos theme:elvgren theme:elvgren wordpress google code theme:fluid blue theme:fullwidth theme:head theme:journalized theme:journalized blue theme:psycho theme:redoable theme:sharepoint like theme:simple green theme:spirit theme:steam theme:wuhan theme:yadda theme switcher thomas tigris euphrates tile tinfoil hat toc tofu tower theater training transit transit oriented development tribute u haul uneasy rhetoric university village van zant veterans day video vie viking hobby vote smart w3c wall warboss washer washington post weather web web developer web server wikipedia windows wishlist woodworking wordpress workplace wpblacklist wpgatekeeper wsj yaaarr yard