You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/11/28 17:52:49 UTC
[whimsy] branch master updated: Use listing rather than checkout
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 f1dd193 Use listing rather than checkout
f1dd193 is described below
commit f1dd1933523f31b12e8993a71a61a1854ad5c6c2
Author: Sebb <se...@apache.org>
AuthorDate: Thu Nov 28 17:52:24 2019 +0000
Use listing rather than checkout
---
lib/whimsy/asf/memapps.rb | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/lib/whimsy/asf/memapps.rb b/lib/whimsy/asf/memapps.rb
index 3c2cdf2..fe8bc6a 100644
--- a/lib/whimsy/asf/memapps.rb
+++ b/lib/whimsy/asf/memapps.rb
@@ -9,9 +9,8 @@ require_relative 'svn'
module ASF
class MemApps
- @@MEMAPPS = ASF::SVN['member_apps']
@@files = nil
- @@mtime = nil
+ @@tag = nil
# list the stems of the files (excluding any ones which record emeritus)
def self.stems
@@ -93,11 +92,9 @@ module ASF
private
def self.refresh
- if File.mtime(@@MEMAPPS) != @@mtime
- @@files = Dir[File.join(@@MEMAPPS, '*')].map { |p|
- File.basename(p)
- }
- @@mtime = File.mtime(@@MEMAPPS)
+ @@tag, list = ASF::SVN.getlisting('member_apps', @@tag)
+ if list
+ @@files = list
end
end
end