You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Geoffrey Plitt <pl...@gmail.com> on 2008/12/02 01:05:50 UTC
Apple applications delete admin folders, annoying to remedy, can we fix this?
hello!
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.
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?
thanks,
-G
Re: Apple applications delete admin folders, annoying to remedy, can we fix this?
Posted by Rush Manbert <ru...@manbert.com>.
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@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
Re: Apple applications delete admin folders, annoying to remedy,
can we fix this?
Posted by David Weintraub <qa...@gmail.com>.
Well, maybe this isn't a solution for a Subversion list, but Subversion's
use of .svn directories inside the working directories can cause havoc when
attempting to work with Apple "bundles".
What I've done is use Perforce -- a competing, proprietary, non-open source,
version control system. However, if you use Perforce for fewer than two
users and have fewer than five "clients" (working directories), Perforce is
free. That makes it a possible choice for a private, non-shared repository.
The big advantage Perforce has over many open source version control systems
is that Perforce doesn't have special administration directories or files
peppered inside its working directories. Of course, it means that Perforce
is much more dependent upon being in touch with the repository server.
(Working offline in Perforce is possible, but not easy.) But, it does mean
that it handles the Apple "bundle" problem much more gracefully than
Subversion does.
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=978668
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Apple applications delete admin folders, annoying to remedy,
can we fix this?
Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
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?
http://svn.collab.net/repos/svn/trunk/notes/wc-ng-design
-Hyrum
Re: Apple applications delete admin folders, annoying to remedy, can we fix this?
Posted by Geoffrey Plitt <ge...@gweb.org>.
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@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
Re: Apple applications delete admin folders, annoying to remedy, can we fix this?
Posted by Ryan Schmidt <su...@ryandesign.com>.
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org