From ff4beb2c78390ae15a6305e92880d4357fc44988 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 13 Jun 2007 05:49:34 +0000 Subject: [PATCH] fixed #590. While it's bit ugly, always adding the 'Attic' in the path component seems to make things work. See https://hudson.dev.java.net/issues/show_bug.cgi?id=590 for more details. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3435 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/scm/browsers/ViewCVS.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/scm/browsers/ViewCVS.java b/core/src/main/java/hudson/scm/browsers/ViewCVS.java index 63e61c05aa..f819b0cb9b 100644 --- a/core/src/main/java/hudson/scm/browsers/ViewCVS.java +++ b/core/src/main/java/hudson/scm/browsers/ViewCVS.java @@ -35,7 +35,9 @@ public final class ViewCVS extends CVSRepositoryBrowser { } public URL getFileLink(File file) throws IOException { - return new URL(url,trimHeadSlash(file.getFullName())+param()); + return new URL( + new URL(url,trimHeadSlash(file.getFullName())), + "Attic/"+file.getSimpleName()+param()); } public URL getDiffLink(File file) throws IOException { -- GitLab