whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 24f9c17: A tool that helps with initial setup
Date Fri, 08 Jan 2016 13:54:10 GMT
Commit 24f9c175627a7ce8a58ab2da6e29b523a1257eed:
    A tool that helps with initial setup


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
tools/svninfo.rb                                             | +++++++++++ 
------------------------------------------------------------
21 changes: 21 additions, 0 deletions.
------------------------------------------------------------


diff --git a/tools/svninfo.rb b/tools/svninfo.rb
new file mode 100644
index 0000000..78cc3c9
--- /dev/null
+++ b/tools/svninfo.rb
@@ -0,0 +1,21 @@
+#
+# Produce the set of commands that would recreate the current svn checkouts
+#
+
+Dir.chdir '/srv/svn'
+
+Dir['*'].sort.each do |name|
+  if Dir.exist? name
+    Dir.chdir name do
+      url = `svn info`[/URL: (.*)/, 1]
+
+      if Dir['*/*'].empty?
+        depth = ' --depth=files'
+      else
+        depth = ''
+      end
+
+      puts "svn checkout#{depth} #{url} #{name}"
+    end
+  end
+end

Mime
View raw message