Re: How to clean the working dir from .svn folders ?

2011-07-26 Thread Damien Mistic
Hello,
as svn is the owner of .svn directories I suppose it can delete them.
More over according to my experience process launched into exec() have more 
rights that other php functions.

For help here is my possible workflow :
checkout
some commits
delete the working directory

I'm in local on Windows for the moment, I'm going to install a local FTP 
server to check the rights of the files.
But they are created by svn, in my mind it could delete them.

Damien.

-Message d'origine- 
From: Thorsten Schöning
Sent: Tuesday, July 26, 2011 9:27 AM
To: users@subversion.apache.org
Subject: Re: How to clean the working dir from .svn folders ?

Guten Tag Damien Mistic,
am Dienstag, 26. Juli 2011 um 00:00 schrieben Sie:

 Warning: unlink(svn/.svn/all-wcprops) [function.unlink]: Permission denied
 in C:\wamp\www\lang_editor\include\functions.inc.php on line 325

If you don't have permission executing unlink on those files, doing it
within exec won't change a thing, right? The permissions stay the same,
however they look like for your webserver.

 And the 'export' function is not what I want because my aim is to delete 
 the
 folder, not really get a clean copy.

But what is the difference between having a functional working copy,
destroy it by deleting the .svn folders and a clean export, which is
designed to make exactly what you want? Maybe you should describe your
scenario a bit more.

 If there is no way I think we must add a new function to SVN, such as 'svn
 unlink' or 'svn dissociate'

And what will this change if your error is permissions on the
.svn-folders and files in there?

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig

Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoen...@am-soft.de
Web: http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow



How to clean the working dir from .svn folders ?

2011-07-25 Thread Damien Mistic

Hi all,
so my problem is clear : I've a working dir and I want to clean it up from 
all .svn folders, how to ?
Knowing that I'm working un CLI within exec() function of PHP. Unfortunately 
I can't delete manually files and folders :


Warning: unlink(svn/.svn/all-wcprops) [function.unlink]: Permission denied 
in C:\wamp\www\lang_editor\include\functions.inc.php on line 325


And the 'export' function is not what I want because my aim is to delete the 
folder, not really get a clean copy.


If there is no way I think we must add a new function to SVN, such as 'svn 
unlink' or 'svn dissociate'


Regards, Damien.