[Anthill-dev] patch for getting complete PVCS revision filenames
scott
scott at ragingkegger.com
Wed Dec 17 10:33:33 CST 2003
Here is a patch so that the first character of each file name that is in
the revision list is no longer chopped. The code is using the
String.substring method which is 0 based, not 1 based.
This also prevents the version.txt file from showing up in the revision
list. Though that means this file doesn't show up if someone manually
edited it, maybe we should check that is the version file and
'Committed_By_Anthill'? Anyway here is the patch for the file name part:
Index:
source/main/java/com/urbancode/anthill/adapter/PVCSRepositoryAdapter.java
===================================================================
RCS file:
/usr/local/cvs/Anthill/source/main/java/com/urbancode/anthill/adapter/PVCSRepositoryAdapter.java,v
retrieving revision 1.17
diff -u -r1.17 PVCSRepositoryAdapter.java
---
source/main/java/com/urbancode/anthill/adapter/PVCSRepositoryAdapter.java
2003/09/04 15:19:42 1.17
+++
source/main/java/com/urbancode/anthill/adapter/PVCSRepositoryAdapter.java
2003/12/17 00:28:39
@@ -330,7 +330,7 @@
// and the rest is your archive file
log.debug("Archive String: " + archiveString);
String chopOff =
archiveLocation+File.separator+projectName+File.separator;
- currentFilePath = archiveString.substring(chopOff.length(),
archiveString.length());
+ currentFilePath = archiveString.substring(chopOff.length()-1,
archiveString.length());
while ((tempLine != null) &&
(!tempLine.startsWith(workFileString))) {
tempLine = br.readLine();
More information about the Anthill-dev
mailing list