6 from os
import listdir
,path
,system
7 from popen2
import popen4
24 elif not rmEmpty(path
.join(d
,f
)):
27 print "Removing ",d
,"because it is empty"
36 rein
,raus
=popen4("svn status "+start
)
37 lines
=rein
.readlines()
53 svnCommand("add "+name
)
56 svnCommand("delete "+name
)
68 print "Problem with",name
71 print "Modified files:",modified
72 print "Added files:",added
73 print "Removed files:",removed
74 print "Conflicting files:",conflicting
75 print "Replaced files:",replaced
78 def checkEmptyDirs(current
):
81 for f
in listdir(current
):
85 pfad
=path
.join(current
,f
)
88 if checkEmptyDirs(pfad
):
94 print "Removing",current
95 svnCommand("remove "+current
)
100 checkEmptyDirs(start
)