From 3dc145b55e88af6e4926099b26cf70dc7fa731f3 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 12 Nov 2012 14:30:29 +0000 Subject: [PATCH] * if output is filtered using file arguments, only print history entries where the final destination file exists --- website/scripts/history.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/history.groovy b/website/scripts/history.groovy index fbbe04f0..d6ef2b11 100644 --- a/website/scripts/history.groovy +++ b/website/scripts/history.groovy @@ -6,7 +6,7 @@ def template = new groovy.text.GStringTemplateEngine().createTemplate(format) // use args to list history only for the given folders if desired def accept(from, to) { - args.empty ? true : args.find{ to.absolutePath.startsWith(it.absolutePath) } + args.empty ? true : args.find{ to.absolutePath.startsWith(it.absolutePath) } && to.exists() }