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

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

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Tue, 26 Jul 2011 09:45:06 +0200

Hi, Thorsten,

Von: Thorsten Schöning [mailto:tschoening_at_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.schaber@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
Received on 2011-07-26 09:46:02 CEST

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.