add ability to revert wiki pages

This commit is contained in:
rick
2010-12-08 14:57:29 -08:00
parent 54eca090ee
commit 25a56725f9
27 changed files with 568 additions and 3 deletions
+10
View File
@@ -18,6 +18,16 @@ def testpath(path)
File.join(TEST_DIR, path)
end
def cloned_testpath(path)
path = testpath(path)
cloned = path.chomp('.git')
FileUtils.rm_rf cloned
Dir.chdir(File.expand_path(File.dirname(path))) do
%x{git clone #{File.basename(path)}}
end
cloned
end
def commit_details
{ :message => "Did something at #{Time.now}",
:name => "Tom Preston-Werner",