This is an automated email from the ASF dual-hosted git repository.
curcuru 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 fc620d0 Also display all repos used by major tools
fc620d0 is described below
commit fc620d00e2556cd504469bed58d7a2ba6c831c53
Author: Shane Curcuru <[email protected]>
AuthorDate: Fri May 31 13:29:20 2019 -0400
Also display all repos used by major tools
---
www/members/repo-use.cgi | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/www/members/repo-use.cgi b/www/members/repo-use.cgi
index d6c1180..88a276f 100755
--- a/www/members/repo-use.cgi
+++ b/www/members/repo-use.cgi
@@ -5,6 +5,7 @@ require 'whimsy/asf'
require 'wunderbar'
require 'wunderbar/bootstrap'
require '../../tools/wwwdocs.rb'
+require 'whimsy/logparser'
_html do
_body? do
@@ -20,7 +21,8 @@ _html do
},
helpblock: -> {
_p.pull_right do
- _ 'This scans the whimsy repo for uses of ASF::SVN, either public or
private repos. It also shows the httpd auth level required to run a script:
the graphical key shows which authentication realm is needed.'
+ _ 'This scans the whimsy repo for uses of ASF::SVN, either public or
private repos. It also shows the httpd auth level required to run a script:
the graphical key shows which authentication realm is needed. See also the '
+ _a 'listing of all repos used by some common tools.', href:
'#majortools'
end
emit_authmap
}
@@ -29,6 +31,7 @@ _html do
priv = build_regexp(priv)
pub = build_regexp(pub)
scan = scan_dir_svn('../../', [priv, pub])
+
_whimsy_panel_table(title: 'Repo use by script') do
_table.table.table_hover do
_thead_ do
@@ -70,6 +73,28 @@ _html do
end
end
end
+
+ _whimsy_panel('All repo use by major tools') do
+ _ul.list_group id: 'majortools' do
+ LogParser::WHIMSY_APPS.each do |path, app|
+ # collect tool's worth of lines
+ tmp, scan = scan.partition{ |dir, v| dir.match(path) }.map(&:to_h)
+ tool = []
+ tmp.each do |file, (privlines, publines, wwwauth, authrealm)|
+ [privlines, publines].flatten.each do |x|
+ tool << "#{x}" if x.length > 0
+ end
+ end
+ _li!.list_group_item.active do
+ _ "#{app} (#{path})"
+ end
+ tool.uniq.sort.each do |itm|
+ _li.list_group_item "#{itm}"
+ end
+ end
+ end
+ end
+
end
end
end
\ No newline at end of file