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 451985e Only rakefile needs depth==delete repos
451985e is described below
commit 451985e290825bb6a96d64742d23cdc01d5d11f6
Author: Sebb <[email protected]>
AuthorDate: Sat Nov 30 18:51:49 2019 +0000
Only rakefile needs depth==delete repos
---
Rakefile | 3 ++-
lib/whimsy/asf/svn.rb | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Rakefile b/Rakefile
index b9e1437..86a0124 100644
--- a/Rakefile
+++ b/Rakefile
@@ -88,7 +88,8 @@ end
namespace :svn do
task :update => :config do
- svnrepos = ASF::SVN.repo_entries || {}
+ # Include depth == 'delete'
+ svnrepos = ASF::SVN.repo_entries(true) || {}
# must be outside loop
PREFIX = '#!:' # must agree with monitors/svn.rb
diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 104004c..8e09b0c 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -70,8 +70,9 @@ module ASF
# Get the SVN repo entries corresponding to local checkouts
# Excludes those that are present as aliases only
- def self.repo_entries
- self._all_repo_entries.reject{|k,v| v['depth'] == 'skip'}
+ # @params includeDeleted if should return depth == delete, default false
+ def self.repo_entries(includeDelete=false)
+ self._all_repo_entries.reject{|k,v| v['depth'] == 'skip' or (v['depth']
== 'delete' and not includeDelete)}
end
# fetch a repository entry by name