Skip to content

Commit

Permalink
[FIXED JENKINS-16044] Allow CVS roots with backslashes during log parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mc1arke committed Jan 20, 2013
1 parent e1d22aa commit a39c6a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a39c6a2

Please sign in to comment.