Skip to content
Permalink
Browse files

[FIXED JENKINS-16044] Allow CVS roots with backslashes during log parse

  • Loading branch information...
mc1arke committed Jan 20, 2013
1 parent e1d22aa commit a39c6a206d96106620c5eacb91f4e583cd1bb683
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/hudson/scm/CvsLog.java
@@ -1,6 +1,7 @@
package hudson.scm;

import hudson.scm.CVSChangeLogSet.CVSChangeLog;
import org.netbeans.lib.cvsclient.CVSRoot;

import java.io.BufferedReader;
import java.io.IOException;
@@ -139,7 +140,7 @@ private Status parseFileName(final String line, final CVSChangeLogSet.File file,

// get the root directory from cvs root (e.g :pserver:host/path/to/repo/
// gives /path/to/repo/ and remove it from the file path
final String rootName = cvsRoot.split("/", 2)[1];
final String rootName = CVSRoot.parse(cvsRoot).getRepository();
file.setName(filePath.substring(rootName.length() + 1));

return Status.FILE_BRANCH_NAMES;

0 comments on commit a39c6a2

Please sign in to comment.
You can’t perform that action at this time.