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 81e4c469 Add some files for testing
81e4c469 is described below
commit 81e4c469b8c1645fa7a99db9d012e569a039f5b4
Author: Sebb <[email protected]>
AuthorDate: Sun Jun 8 17:02:23 2025 +0100
Add some files for testing
---
tools/setup_local_repo.rb | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/tools/setup_local_repo.rb b/tools/setup_local_repo.rb
index 940f3e32..e994b09c 100755
--- a/tools/setup_local_repo.rb
+++ b/tools/setup_local_repo.rb
@@ -67,3 +67,29 @@ svnrepos.each do |name, entry|
# foundation_board/current.txt
# foundation_board/templates
end
+
+def svncopy(relpath)
+ filepath = File.join(LOCAL_URL, relpath)
+ revision, _err = ASF::SVN.getRevision(filepath)
+ unless revision
+ infile = File.join(ASF_REPO, relpath)
+ Dir.mktmpdir do |tmpdir|
+ tmpfile = File.join(tmpdir, File.basename(relpath))
+ system 'svn', 'export', infile, tmpfile
+ system 'svnmucc', '--message', 'Initial_create', 'put', tmpfile, filepath
+ end
+ end
+end
+
+def svnmkdir(relpath)
+ filepath = File.join(LOCAL_URL, relpath)
+ revision, _err = ASF::SVN.getRevision(filepath)
+ unless revision
+ system 'svn', '--message', "Initial_create", 'mkdir', filepath
+ end
+end
+
+# Set up some files needed for testing
+svncopy('asf/infrastructure/site/trunk/content/foundation/records/minutes/HEADER.html')
+svnmkdir('asf/infrastructure/site/trunk/content/foundation/records/minutes/2000')
+svncopy('asf/infrastructure/site/trunk/content/foundation/records/minutes/2000/board_minutes_2000_02_28.txt')
\ No newline at end of file