whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Add SVN workspace delete option
Date Fri, 29 Nov 2019 15:32:57 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a96944f  Add SVN workspace delete option
a96944f is described below

commit a96944fb1b40d1db72ae5e09e2a8898296bbb9b3
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Nov 29 15:32:45 2019 +0000

    Add SVN workspace delete option
---
 Rakefile       | 16 ++++++++++++----
 repository.yml |  8 ++++++--
 2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/Rakefile b/Rakefile
index 12e95db..0d457a9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -113,14 +113,22 @@ namespace :svn do
             end
           end
           svnpath = ASF::SVN.svnurl(name)
+          noCheckout = description['depth'] == 'delete'
           if Dir.exist? name
-            curpath = ASF::SVN.getInfoItem(name,'url')
-            if curpath != svnpath
-              puts "Removing #{name} to correct URL: #{curpath} => #{svnpath}"
-              FileUtils.rm_rf name  
+            if noCheckout
+              puts "#{PREFIX} Removing #{name} as it is not intended for checkout"
+              FileUtils.rm_rf name                
+            else
+              curpath = ASF::SVN.getInfoItem(name,'url')
+              if curpath != svnpath
+                puts "Removing #{name} to correct URL: #{curpath} => #{svnpath}"
+                FileUtils.rm_rf name  
+              end
             end
           end
 
+          next if noCheckout
+
           if Dir.exist? name
             Dir.chdir(name) {
               system 'svn cleanup'
diff --git a/repository.yml b/repository.yml
index 75e93b4..2aacb08 100644
--- a/repository.yml
+++ b/repository.yml
@@ -19,6 +19,9 @@
 # Entries that are not intended to have local workspaces are indicated by: 'depth: skip'
 # Such entries are for url lookup only, e.g. Bills
 
+# names that are list only have 'depth: delete'
+# This is decoupled from list to allow a gradual changeover
+
 :svn:
 
   Bills:
@@ -40,8 +43,9 @@
     url: private/committers/board
     depth: files
 
-  cclas:
+  cclas: # list only; no checkout
     url: private/documents/cclas
+    depth: delete
     list: true
 
   comdev-foundation:
@@ -79,7 +83,7 @@
 
   member_apps:
     url: private/documents/member_apps
-    depth: empty
+    depth: delete
     list: true
 
   minutes:


Mime
View raw message