[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Apple applications delete admin folders, annoying to remedy, can we fix this?

From: Rush Manbert <rush_at_manbert.com>
Date: Mon, 1 Dec 2008 18:14:25 -0800

Check this out:

http://sadilek.blogspot.com/2007/07/restore-svn-in-keynotepages-documents.html

We are using it to recover the .svn directories that are destroyed by
Pages. It's scary, but it works.

And you should file bugs with Apple too. bugreporter.apple.com

Best regards,
Rush

On Dec 1, 2008, at 5:41 PM, Geoffrey Plitt wrote:

> Awesome answers, guys, thanks so much.
>
> - i'll check out svk, which looks great.
> - i'll look at the --force option on "svn update".
> - i'm glad they're planning to remove .SVN folders, that sounds
> wonderful. can you point me to any docs/discussions about this plan?
>
> cool,
>
> g
>
> On Mon, Dec 1, 2008 at 5:28 PM, Ryan Schmidt <subversion-2008c_at_ryandesign.com
> > wrote:
>
> On Dec 1, 2008, at 19:05, Geoffrey Plitt wrote:
>
> i've used SVN for 4+ years, and i've got an issue with deleted admin
> folders.
>
> I used SVN to store audio documents created by several Apple/Mac
> apps (GarageBand, Logic) I use. These apps (there are probably
> others, but i verified it with these 2) tend to delete the
> subversion admin folder. I'm not sure why, and it seems to not
> depend on whether I use the "period" or "underscore" prefix options.
> The apps just delete everything in the folder that they don't want
> in there, I guess.
>
> First off: I imagine you're talking about "documents" which are
> technically directories, or "bundles" as Apple calls them, rather
> than plain files.
>
> The issue I think it's not that the app is deliberately removing
> the .svn directory. Rather it's that to save the "document", it
> first creates an entirely new directory/bundle in a temporary
> location, puts all the current data in it, then removes the old
> document/bundle (along with its .svn directory and anything else the
> app doesn't know about, unfortunately) and moves the new document/
> bundle in place.
>
> Apple already fixed Xcode to preserve the .svn directory in these
> cases. Apple could make similar changes to their other applications.
> You could file bugs with Apple.
>
> http://bugreport.apple.com
>
>
> Once the admin folder is gone, it should be dead-simple for SVN to
> restore it. Why isn't this possible yet? I looked around and the
> only recommendations are to move the folders contents to another
> location, then svn-update (which could take a long time if there are
> a lot of files), then move the contents back in. I have to do this
> every single time I save the project in these applications.
>
> Any other workarounds? Or is the SVN team working on a better way to
> restore admin folders?
>
> Actually Subversion recently (Subversion 1.5) got the ability to
> check out and update over an existing directory. So I think you can
> do this:
>
> svn update --force path/to/your/document
>
> And it will recreate the .svn directory.
>
> On the other hand, I believe there is a plan to totally rewrite the
> working copy code, so that .svn directories aren't strewn into every
> directory (and thus every document bundle). Once that's done, this
> issue fixes itself.
>
>
>
>
> --
> http://gweb.org
> http://www.facebook.com/profile.php?id=4805037
> http://www.myspace.com/playergiro
> https://twitter.com/GeoffreyPlitt
Received on 2008-12-02 03:15:00 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.