You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/04/30 01:24:58 UTC
[whimsy] branch master updated: cleanup and restart svn:update when
path changes
This is an automated email from the ASF dual-hosted git repository.
rubys 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 330181d cleanup and restart svn:update when path changes
330181d is described below
commit 330181ddb63f174286299579ced581ec7dea28c8
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Apr 29 21:24:36 2018 -0400
cleanup and restart svn:update when path changes
---
Rakefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Rakefile b/Rakefile
index 9043ca4..ac1597f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -95,6 +95,13 @@ namespace :svn do
(repository[:svn] || {}).each do |name, description|
puts
puts File.join(Dir.pwd, name)
+ svnpath = (base + description['url']).to_s
+ if Dir.exist? name
+ if `svn info #{name}`[/^URL: (.*)/, 1] != svnpath
+ FileUtils.rm_rf name
+ end
+ end
+
if Dir.exist? name
Dir.chdir(name) {
system 'svn cleanup'
@@ -121,6 +128,7 @@ namespace :svn do
break
end
end
+
puts outerr # show what happened last
}
else
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.