(refs #180)Implementing reverting from history without ApplyCommand.

This commit is contained in:
takezoe
2013-10-30 08:20:17 +09:00
parent 599a808054
commit 68b25ddbb5
3 changed files with 178 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ trait WikiControllerBase extends ControllerBase with FlashMapSupport {
val Array(from, to) = params("commitId").split("\\.\\.\\.")
if(revertWikiPage(repository.owner, repository.name, from, to, context.loginAccount.get, None)){
redirect(s"/${repository.owner}/${repository.name}/wiki/}")
redirect(s"/${repository.owner}/${repository.name}/wiki/")
} else {
flash += "info" -> "This patch was not able to be reversed."
redirect(s"/${repository.owner}/${repository.name}/wiki/_compare/${from}...${to}")