~ubuntu-branches/ubuntu/saucy/statsvn/saucy

« back to all changes in this revision

Viewing changes to src/net/sf/statsvn/input/RepositoryFileManager.java

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2008-06-28 15:53:07 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080628155307-sw2xqeigkk4zwlxm
Tags: 0.4.0.dfsg-1
* New upstream version (closes: #481799)
* Does not work with older statcvs, tightening up dependencies
* statsvn still complains about files with spaces within, but
  it does not seem to affect statistics anymore, so it 
  closes: #469937,#469938

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import java.io.BufferedReader;
26
26
import java.io.FileReader;
27
27
import java.io.IOException;
 
28
import java.util.Vector;
28
29
 
29
30
import net.sf.statcvs.input.LogSyntaxException;
30
31
import net.sf.statcvs.input.NoLineCountException;
48
49
 * @author Steffen Pingel
49
50
 * @author Jason Kealey <jkealey@shade.ca>
50
51
 * 
51
 
 * @version $Id: RepositoryFileManager.java 246 2007-01-10 20:25:37Z benoitx $
 
52
 * @version $Id: RepositoryFileManager.java 351 2008-03-28 18:46:26Z benoitx $
52
53
 */
53
54
public class RepositoryFileManager {
54
 
        private String path;
 
55
        private final String path;
55
56
 
56
57
        /**
57
58
         * Creates a new instance with root at <code>pathName</code>.
151
152
        }
152
153
 
153
154
        /**
 
155
        * Returns line count differences for all files in a particular revision.
 
156
        * 
 
157
        * @param newRevNr
 
158
        *            new revision number
 
159
        * @return A vector of object[3] array of [filename, int[2](lines added, lines removed), isBinary] is returned.
 
160
        * @throws IOException
 
161
        *             problem parsing the stream
 
162
        * @throws BinaryDiffException
 
163
        *             if the error message is due to trying to diff binary files.
 
164
        */
 
165
        public Vector getRevisionDiff(final String newRevNr) throws IOException, BinaryDiffException {
 
166
                return SvnDiffUtils.getLineDiff(newRevNr);
 
167
        }
 
168
 
 
169
        /**
154
170
         * Returns the lines of code for a repository file. (Currently checked out
155
171
         * version)
156
172
         * 
213
229
                        throw new IOException("File " + filename + " has no revision");
214
230
                }
215
231
        }
216
 
        
 
232
 
217
233
        /**
218
234
         * Assumes #loadInfo(String) has been called.
219
235
         *