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
AW: How to clean the working dir from .svn folders ?
Hi, Thorsten, Von: Thorsten Schöning [mailto:tschoen...@am-soft.de] 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. Maybe it is one of those files which are marked read-only by subversion? Unlink will fail with permission denied, but the user has the permission to re-mark the file read-write. rm -rf does that on unixoid systems. I don't know whether php has a built-in function, however. 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? There are at least 2 differences: - Local modifications won't be preserved. - Repository access is necessary. Best regards Markus Schaber ___ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.scha...@3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
Re: How to clean the working dir from .svn folders ?
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
Re: How to clean the working dir from .svn folders ?
*From:* Geoff Hoffman ghoff...@cardinalpath.com *Sent:* Tuesday, July 26, 2011 4:05 PM *To:* users@subversion.apache.org *Subject:* Re: How to clean the working dir from .svn folders ? I believe you can use a bash script similar to the following, but you may need to set a flag from PHP so that cron running as root or admin has permission to delete them. Hope it helps- #!/bin/sh echo recursively removing .svn folders from pwd rm -rf `find . -type d -name .svn` On Tue, Jul 26, 2011 at 7:32 AM, Damien Mistic mistic100.fore...@hotmail.fr wrote: ‘rm’ is a not a Windows function, as I said I must run on all platforms, that’s why it’s better if subversion can do it itself [image: Sourire] Damien. Ah - I thought someone mentioned cygwin ... sorry. Could you create a PHP script specifically for this? There are lots of recursive directory walk scripts online. I'm sure you have a reason why svn export won't work but are you certain? That's what it's for. You can't export as 'original-dir-export' next to your original-dir, delete the original-dir, rename the exported back to same as original-dir? wlEmoticon-smile[1].png Description: Binary data
Re: How to clean the working dir from .svn folders ?
*From:* Geoff Hoffman ghoff...@cardinalpath.com *Sent:* Tuesday, July 26, 2011 4:05 PM *To:* users@subversion.apache.org *Subject:* Re: How to clean the working dir from .svn folders ? I believe you can use a bash script similar to the following, but you may need to set a flag from PHP so that cron running as root or admin has permission to delete them. Hope it helps- #!/bin/sh echo recursively removing .svn folders from pwd rm -rf `find . -type d -name .svn` On Tue, Jul 26, 2011 at 7:32 AM, Damien Mistic mistic100.fore...@hotmail.fr wrote: ‘rm’ is a not a Windows function, as I said I must run on all platforms, that’s why it’s better if subversion can do it itself [image: Sourire] Damien. Ah - I thought someone mentioned cygwin ... sorry. Could you create a PHP script specifically for this? There are lots of recursive directory walk scripts online. I'm sure you have a reason why svn export won't work but are you certain? That's what it's for. You can't export as 'original-dir-export' next to your original-dir, delete the original-dir, rename the exported back to same as original-dir? On Tue, Jul 26, 2011 at 8:04 AM, Damien Mistic mistic100.fore...@hotmail.fr wrote: Dir you read my first mail ? I repost it here : 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. Yes, I read it, but I don't understand *why* export-and-rename won't work as the end result would be indistinguishable from what you're saying you want. You may be able to run PHP script with admin user rights on the command line but it's different across platforms how to do this. Sorry I'm not more help. wlEmoticon-smile[1].png Description: Binary data
Re: How to clean the working dir from .svn folders ?
On 7/26/2011 9:58 AM, Geoff Hoffman wrote: Ah - I thought someone mentioned cygwin ... sorry. Could you create a PHP script specifically for this? There are lots of recursive directory walk scripts online. I'm sure you have a reason why svn export won't work but are you certain? That's what it's for. You can't export as 'original-dir-export' next to your original-dir, delete the original-dir, rename the exported back to same as original-dir? Another reasonable alternative is to update a working copy in a staging area, possibly on a test server, then use rsync with the '-C' option to copy the files into their production location(s). That option skips files associated with svn or cvs metadata (and a few other things so it is best to look at the list it skips before trusting it). -- Les Mikesell lesmikes...@gmail.com
Re: How to clean the working dir from .svn folders ?
On Tue, Jul 26, 2011 at 9:27 AM, Damien Mistic mistic100.fore...@hotmail.fr wrote: And I maintain the final aim is absolutely not the same as ‘export’ does. If you say so. I'm not sure how that could be possible given my understanding of the svn export command. Anyway, glad you got it sorted out!
How to clean the working dir from .svn folders ?
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.
RE: How to clean the working dir from .svn folders ?
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' If you can run svn can you not run the shell rm command? BOb