20
Apr
06

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.


1 Response to “Testing scplugin on a local repository”


  1. 1 Daryl May 11th, 2006 at 14:58 UTC

    Thanks!

    This posting saved me when I was getting the “Error: /usr/local/bin/port: port sync failed: sync failed doing rsync” from darwinports.

    Best Regards, Daryl

Leave a Reply




April 2006
M T W T F S S
« Mar   May »
 12
3456789
10111213141516
17181920212223
24252627282930

Tags

a wok for all seasons abramoff accessibility acetylene active directory activism adodb aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy antenna anti failure any browser apache appetizer apple apple pie applescript arden arcade arden park ariana arnold artichoke ashland astronomy attic attika audio avid reader backup baen bart bash batch 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 butter cabinetry caira caitlin california callsign candamir caroline carpet cat cateye cdrom celebration cellular phone century cfengine cheese chicken chico chile chili chimney chinese chipotle chocolate christmas 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 database datarescue date format death delicious monster democracy now Democrat demolition dessert dhcp dickens diff disaster discrimination discworld dishwasher disk mirror diskutil diskutility diskwarrior dixie belle dock doors downing street memo drm dryer drywall dtv dump ed burke eff eggs eject election electric car electric truck electrical electricity elvgren emacs email energy efficiency eric meyer esr etext euthanasia facebook family faq faux news fcc feed feedreader fence finder firefox fireworks first4internet first amendment fishmeal flash flickr flooring fondue foreign exchange foundation fox and goose framing freebsd freedback freetds fsck fundraiser fyq garage garden geek geotag geourl ginger gnutar go gonuls google google earth google maps gpl gracenote graywater greek green group concat gtd gunthers gutters gwbush gymnastics hacking halloween ham ham radio handspring hardwood harry potter headmeta heimdal high speed photograph high tech inv hoax hobbies hobby hodgins holiday holly home power magazine horcrux houseblogs how to html https humor hvac ilovejackdaniels imac impeach init inspection insulation intel internet iostat ipod ipodder iq iraq isight iso itunes ivins iwantsandy java city javascript jean reno jet lag joint chiefs joseph jott journalized blue judges cup juliette binoche kale kctc kerberos khs kimkerry kitchen kyocera la salles la times labor landscape laundry law leatherbys legal lego leopard lhc liberal library linkedin ljurban lodi logic logo lungren lynx maaloufs mac macaroni macbook mafc mailinator make.conf malware map marin markdown martin yan 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 mssql munchkin murray mushroom music mynetflix mysql n3jim nagios naked lounge neon nerd score netflix network new urbanism new year New Yorker nofollow nut nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palast 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 portaudit portmaster ports portupgrade postfix potato powerbook Pozsars printer programming project gutenberg pryde punk puzzle qiana qrz quilt quilt shop quiz quote r5 records racism radio RAID railroad recent comments recipe redalt remodel repairmirror resaurant resolution restaurant restore review richmond rio americano robotics roger niello ron montana roof rootkit rss sacbee sacog sacramento sacramento spotlight magazine salad samba san francisco sandwich santa cruz scam scandal school days scplugin screen security session report shakespeare shuffle sigma siriradha sitemap slim jim snl snopes social social network software soma somafab sonicchicken sonicchicken blog sony spam spam karma spellcheck spinach spinner spirit spoiler etiquette spring hill cheese sql sqlserver stairs standards statcounter stephen king stop loss stucco stunt subversion sudo sudoku superbowl superhero supreme court sushi svn sysadmin tacoma tags plugin takara technology telephone television template terms and conditions textcontrol thai kitchen thanksgiving the well seasoned wok 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 unix ad notes ups van zant veal veterans day video vie viking hobby vote smart w3c wall warboss washer washington post weather web web developer web server wikipedia windows windows server 2003 wishlist woodworking wordpress workplace wpblacklist wpgatekeeper wsj xserve yaaarr yard