/** * Creates a new instance. Called by native library. */ private RevisionRange(long from, long to) { this.from = Revision.getInstance(from); this.to = Revision.getInstance(to); }
/** * Creates a new instance. Called by native library. */ private RevisionRange(long from, long to) { this.from = Revision.getInstance(from); this.to = Revision.getInstance(to); }
public RevisionRange(Revision from, Revision to) { this.from = from; this.to = to; }
/** * Creates a new instance. Called by native library. */ private RevisionRange(long from, long to) { this.from = Revision.getInstance(from); this.to = Revision.getInstance(to); }
public void testSetRevProp() throws SubversionException, IOException { OneTest thisTest = new OneTest(false); admin.setRevProp(thisTest.getRepositoryPath(), Revision.getInstance(0), "svn:log", "Initial repository creation", false, false); } }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
/** * Test basic blame functionality. This test marginally tests blame * correctness, mainly just that the blame APIs link correctly. * @throws Throwable * @since 1.5 */ public void testBasicBlame() throws Throwable { OneTest thisTest = new OneTest(); // Test the old interface to be sure it still works byte[] result = client.blame(thisTest.getWCPath() + "/iota", Revision .getInstance(1), Revision.getInstance(1)); assertEquals(" 1 jrandom This is the file 'iota'.\n", new String(result)); // Test the current interface BlameCallbackImpl callback = new BlameCallbackImpl(); client.blame(thisTest.getWCPath() + "/iota", Revision.getInstance(1), Revision.getInstance(1), callback); assertEquals(1, callback.numberOfLines()); BlameCallbackImpl.BlameLine line = callback.getBlameLine(0); if (line != null) { assertEquals(1, line.getRevision()); assertEquals("jrandom", line.getAuthor()); } }
/** * Test basic blame functionality. This test marginally tests blame * correctness, mainly just that the blame APIs link correctly. * @throws Throwable * @since 1.5 */ public void testBasicBlame() throws Throwable { OneTest thisTest = new OneTest(); // Test the old interface to be sure it still works byte[] result = client.blame(thisTest.getWCPath() + "/iota", Revision .getInstance(1), Revision.getInstance(1)); assertEquals(" 1 jrandom This is the file 'iota'.\n", new String(result)); // Test the current interface BlameCallbackImpl callback = new BlameCallbackImpl(); client.blame(thisTest.getWCPath() + "/iota", Revision.getInstance(1), Revision.getInstance(1), callback); assertEquals(1, callback.numberOfLines()); BlameCallbackImpl.BlameLine line = callback.getBlameLine(0); if (line != null) { assertEquals(1, line.getRevision()); assertEquals("jrandom", line.getAuthor()); } }
client.logMessages(thisTest.getWCPath(), Revision.getInstance(2), Revision.getInstance(2), Revision.getInstance(2), false, false, false, new String[] {"kfogel", "cmpilato"}, 0, callback);
public void testSetRevProp() throws SubversionException, IOException { OneTest thisTest = new OneTest(false); final String MSG = "Initial repository creation"; admin.setRevProp(thisTest.getRepositoryPath(), Revision.getInstance(0), "svn:log", MSG, false, false); PropertyData[] pdata = client.revProperties( makeReposUrl(thisTest.getRepository()), Revision.getInstance(0)); assertNotNull("expect non null rev props"); String logMessage = null; for (int i = 0; i < pdata.length; i++) { if ("svn:log".equals(pdata[i].getName())) { logMessage = pdata[i].getValue(); break; } } assertEquals("expect rev prop change to take effect", MSG, logMessage); } public void testLoadRepo()
final Revision firstRevision = Revision.getInstance(1); final Revision pegRevision = null; // Defaults to Revision.HEAD.
final Revision firstRevision = Revision.getInstance(1); final Revision pegRevision = null; // Defaults to Revision.HEAD.
revisionStart = Revision.getInstance(1);
revisionStart = Revision.getInstance(1);
revisionStart = Revision.getInstance(1);
client.update(thisTest.getWCPath(), Revision.getInstance(1), true);
client.update(thisTest.getWCPath(), Revision.getInstance(1), true);