rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
"been received (" + highest_seqno_seen + "); discarding duplicate message"); | "been received (highest received=" + highest_seqno_seen + "); discarding duplicate message"); | private void deliver(Message msg, SequencerHeader hdr) { Address original_sender=hdr.getOriginalSender(); if(original_sender == null) { if(log.isErrorEnabled()) log.error("original sender is null, cannot swap sender address back to original sender"); return; ... |
public ViewId(Address coord_addr, long id) { this.coord_addr=coord_addr; this.id=id; } | public ViewId() {} | public ViewId(Address coord_addr, long id) { this.coord_addr=coord_addr; this.id=id; } |
public Message copy(boolean copy_buffer) { Message retval=new Message(); retval.dest_addr=dest_addr; retval.src_addr=src_addr; if(copy_buffer && buf != null) { retval.setBuffer(buf, offset, length); } if(headers != null) retval.headers=(HashMap)headers.clone(); return retval; | public Message copy() { return copy(true); | public Message copy(boolean copy_buffer) { Message retval=new Message(); retval.dest_addr=dest_addr; retval.src_addr=src_addr; if(copy_buffer && buf != null) { // change bela Feb 26 2004: we don't resolve the reference retval.setBuffer(buf, offset, length); ... |
testNoResultEol("abc", "abcd", "y", ">abcd=y<", FSMergerBySequence.CONFLICTED); | test("abc", "abcd", "y", ">abcd=y<", FSMergerBySequence.CONFLICTED); | public void testAdjacentChangesVerifiedWithCommandLine() throws Throwable { testNoResultEol("abc", "abcd", "y", ">abcd=y<", FSMergerBySequence.CONFLICTED); testNoResultEol("abcd", "xbcd", "aycd", "xycd", FSMergerBySequence.MERGED); testNoResultEol("abcd", "xbcd", "aybcd", "xybcd", FSMergerBySequence.MERGED); testN... |
testNoResultEol("abcd", "xbcd", "aycd", "xycd", FSMergerBySequence.MERGED); testNoResultEol("abcd", "xbcd", "aybcd", "xybcd", FSMergerBySequence.MERGED); testNoResultEol("abcd", "aycd", "bcd", "ycd", FSMergerBySequence.MERGED); testNoResultEol("abcd", "abcy", "abc", "abc>y=<", FSMergerBySequence.CONFLICTED); testNoResu... | test("abcd", "xbcd", "aycd", "xycd", FSMergerBySequence.MERGED); test("abcd", "xbcd", "aybcd", "xybcd", FSMergerBySequence.MERGED); test("abcd", "aycd", "bcd", "ycd", FSMergerBySequence.MERGED); test("abcd", "abcy", "abc", "abc>y=<", FSMergerBySequence.CONFLICTED); test("abcd", "xabcd", "bcd", ">xa=<bcd", FSMergerBySeq... | public void testAdjacentChangesVerifiedWithCommandLine() throws Throwable { testNoResultEol("abc", "abcd", "y", ">abcd=y<", FSMergerBySequence.CONFLICTED); testNoResultEol("abcd", "xbcd", "aycd", "xycd", FSMergerBySequence.MERGED); testNoResultEol("abcd", "xbcd", "aybcd", "xybcd", FSMergerBySequence.MERGED); testN... |
testResultEol("", "", "", "", FSMergerBySequence.NOT_MODIFIED); testResultEol("a", "a", "a", "a", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "abc", "abc", "abc", FSMergerBySequence.NOT_MODIFIED); | test("", "", "", "", FSMergerBySequence.NOT_MODIFIED); test("a", "a", "a", "a", FSMergerBySequence.NOT_MODIFIED); test("abc", "abc", "abc", "abc", FSMergerBySequence.NOT_MODIFIED); | public void testBasic() throws Throwable { // Not modified testResultEol("", "", "", "", FSMergerBySequence.NOT_MODIFIED); testResultEol("a", "a", "a", "a", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "abc", "abc", "abc", FSMergerBySequence.NOT_MODIFIED); // Merged ... testResultEol("abc", "xbc", "aby... |
testResultEol("abc", "xbc", "aby", "xby", FSMergerBySequence.MERGED); testResultEol("abcd", "xbcd", "abyd", "xbyd", FSMergerBySequence.MERGED); testResultEol("abc", "xbc", "ac", "xc", FSMergerBySequence.MERGED); testResultEol("abc", "xabc", "abc", "xabc", FSMergerBySequence.MERGED); testResultEol("abc", "abcx", "abc", ... | test("abc", "xbc", "aby", "xby", FSMergerBySequence.MERGED); test("abcd", "xbcd", "abyd", "xbyd", FSMergerBySequence.MERGED); test("abc", "xbc", "ac", "xc", FSMergerBySequence.MERGED); test("abc", "xabc", "abc", "xabc", FSMergerBySequence.MERGED); test("abc", "abcx", "abc", "abcx", FSMergerBySequence.MERGED); test("abc... | public void testBasic() throws Throwable { // Not modified testResultEol("", "", "", "", FSMergerBySequence.NOT_MODIFIED); testResultEol("a", "a", "a", "a", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "abc", "abc", "abc", FSMergerBySequence.NOT_MODIFIED); // Merged ... testResultEol("abc", "xbc", "aby... |
testResultEol("abc", "abx", "abx", "abx", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "ab", "ab", "ab", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "b", "b", "b", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "", "", "", FSMergerBySequence.NOT_MODIFIED); | test("abc", "abx", "abx", "abx", FSMergerBySequence.NOT_MODIFIED); test("abc", "ab", "ab", "ab", FSMergerBySequence.NOT_MODIFIED); test("abc", "b", "b", "b", FSMergerBySequence.NOT_MODIFIED); test("abc", "", "", "", FSMergerBySequence.NOT_MODIFIED); | public void testBasic() throws Throwable { // Not modified testResultEol("", "", "", "", FSMergerBySequence.NOT_MODIFIED); testResultEol("a", "a", "a", "a", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "abc", "abc", "abc", FSMergerBySequence.NOT_MODIFIED); // Merged ... testResultEol("abc", "xbc", "aby... |
testResultEol("abc", "axc", "ayc", "a>x=y<c", FSMergerBySequence.CONFLICTED); testResultEol("abc", "axxc", "ayc", "a>xx=y<c", FSMergerBySequence.CONFLICTED); testResultEol("abc", "axxxc", "ayc", "a>xxx=y<c", FSMergerBySequence.CONFLICTED); testResultEol("abc", "axxxc", "ayyc", "a>xxx=yy<c", FSMergerBySequence.CONFLICTE... | test("abc", "axc", "ayc", "a>x=y<c", FSMergerBySequence.CONFLICTED); test("abc", "axxc", "ayc", "a>xx=y<c", FSMergerBySequence.CONFLICTED); test("abc", "axxxc", "ayc", "a>xxx=y<c", FSMergerBySequence.CONFLICTED); test("abc", "axxxc", "ayyc", "a>xxx=yy<c", FSMergerBySequence.CONFLICTED); test("abc", "xbc", "yby", ">x=y<... | public void testBasic() throws Throwable { // Not modified testResultEol("", "", "", "", FSMergerBySequence.NOT_MODIFIED); testResultEol("a", "a", "a", "a", FSMergerBySequence.NOT_MODIFIED); testResultEol("abc", "abc", "abc", "abc", FSMergerBySequence.NOT_MODIFIED); // Merged ... testResultEol("abc", "xbc", "aby... |
private void testDirect(String baseFile, String localFile, String latestFile, String resultFile, String resultEol, int expectedStatus) throws IOException { | private void testDirect(String baseFile, String localFile, String latestFile, String resultFile, int expectedStatus) throws IOException { | private void testDirect(String baseFile, String localFile, String latestFile, String resultFile, String resultEol, int expectedStatus) throws IOException { final FSMergerBySequence merger = new FSMergerBySequence(">".getBytes(), "=".getBytes(), "<".getBytes()); final ByteArrayOutputStream result = new ByteArrayOutpu... |
testDirect("a\n", "a\nb\n", "a\nb\n", "a\nb\n", "\n", FSMergerBySequence.NOT_MODIFIED); testDirect("a", "a\nb\n", "a\nb\n", "a\nb\n", "\n", FSMergerBySequence.NOT_MODIFIED); testDirect("a\nb\nc\n", "a\nx\nc\n", "a\ny\nc\n", "a\n>\nx\n=\ny\n<\nc\n", "\n", FSMergerBySequence.CONFLICTED); testDirect("a\nb", "a\nx", "a\ny"... | testDirect("a\n", "a\nb\n", "a\nb\n", "a\nb\n", FSMergerBySequence.NOT_MODIFIED); testDirect("a", "a\nb\n", "a\nb\n", "a\nb\n", FSMergerBySequence.NOT_MODIFIED); testDirect("a\nb\nc\n", "a\nx\nc\n", "a\ny\nc\n", "a\n>" + FSMergerBySequence.DEFAULT_EOL + "x\n=" + FSMergerBySequence.DEFAULT_EOL + "y\n<" + FSMergerBySeque... | public void testEOLEdgeCases() throws IOException { testDirect("a\n", "a\nb\n", "a\nb\n", "a\nb\n", "\n", FSMergerBySequence.NOT_MODIFIED); testDirect("a", "a\nb\n", "a\nb\n", "a\nb\n", "\n", FSMergerBySequence.NOT_MODIFIED); testDirect("a\nb\nc\n", "a\nx\nc\n", "a\ny\nc\n", "a\n>\nx\n=\ny\n<\nc\n", "\n", FSMergerB... |
">" + FSMergerBySequence.DEFAULT_EOL + "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n=" + FSMergerBySequence.DEFAULT_EOL + "This is file rho.\n<" + FSMergerBySequence.DEFAULT_EOL, null, FSMergerBySequence.CONFLICTED); | ">" + FSMergerBySequence.DEFAULT_EOL + "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n=" + FSMergerBySequence.DEFAULT_EOL + "This is file rho.\n<" + FSMergerBySequence.DEFAULT_EOL, FSMergerBySequence.CONFLICTED); | public void testPython() throws IOException { // Trans 5 Unix testDirect("1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n", "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n", "This is file rho.\n", ">" + FSMergerBySequence.DEFAULT_EOL + "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n=" + FSMergerBySequence.DEFAULT_E... |
">" + FSMergerBySequence.DEFAULT_EOL + "1\r\n2\r\n3\r\n4\r\n4.5\r\n5\r\n6\r\n7\r\n8\r\n9\r\n10\r\n=" + FSMergerBySequence.DEFAULT_EOL + "This is file rho.\n<" + FSMergerBySequence.DEFAULT_EOL, null, FSMergerBySequence.CONFLICTED); | ">" + FSMergerBySequence.DEFAULT_EOL + "1\r\n2\r\n3\r\n4\r\n4.5\r\n5\r\n6\r\n7\r\n8\r\n9\r\n10\r\n=" + FSMergerBySequence.DEFAULT_EOL + "This is file rho.\n<" + FSMergerBySequence.DEFAULT_EOL, FSMergerBySequence.CONFLICTED); | public void testPython() throws IOException { // Trans 5 Unix testDirect("1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n", "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n", "This is file rho.\n", ">" + FSMergerBySequence.DEFAULT_EOL + "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n=" + FSMergerBySequence.DEFAULT_E... |
"This is the file 'mu'.\n>" + FSMergerBySequence.DEFAULT_EOL + "=" + FSMergerBySequence.DEFAULT_EOL + "r3\nr3\nr3\nr3\nr3\nr3\nr3\nr3\nr4\nr4\nr4\nr4\nr4\nr4\nr4\nr4\n<" + FSMergerBySequence.DEFAULT_EOL, null, FSMergerBySequence.CONFLICTED); | "This is the file 'mu'.\n>" + FSMergerBySequence.DEFAULT_EOL + "=" + FSMergerBySequence.DEFAULT_EOL + "r3\nr3\nr3\nr3\nr3\nr3\nr3\nr3\nr4\nr4\nr4\nr4\nr4\nr4\nr4\nr4\n<" + FSMergerBySequence.DEFAULT_EOL, FSMergerBySequence.CONFLICTED); | public void testPython() throws IOException { // Trans 5 Unix testDirect("1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n", "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n", "This is file rho.\n", ">" + FSMergerBySequence.DEFAULT_EOL + "1\n2\n3\n4\n4.5\n5\n6\n7\n8\n9\n10\n=" + FSMergerBySequence.DEFAULT_E... |
testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd", "Aa\nBb\nCc\nEe", "Aa\nBb\nCc\n>\r\nDd=\r\nEe<\r\n", null, FSMergerBySequence.CONFLICTED); | testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd", "Aa\nBb\nCc\nEe", "Aa\nBb\nCc\n>\r\nDd=\r\nEe<\r\n", FSMergerBySequence.CONFLICTED); | public void testSVNSuite() throws IOException { testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd", "Aa\nBb\nCc\nEe", "Aa\nBb\nCc\n>\r\nDd=\r\nEe<\r\n", null, FSMergerBySequence.CONFLICTED); // test_three_way_merge_no_overlap testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\n", "Aa\nBb\nCc\nYy\n", "Xx\nAa\nBb\nCc\nYy\n", null, ... |
testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\n", "Aa\nBb\nCc\nYy\n", "Xx\nAa\nBb\nCc\nYy\n", null, FSMergerBySequence.MERGED); testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\nYy\n", "Aa\nBb\nZz\nCc\n", "Xx\nAa\nBb\nZz\nCc\nYy\n", null, FSMergerBySequence.MERGED); testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc", "Xx\nBb\nCc\n", "Xx\n... | testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\n", "Aa\nBb\nCc\nYy\n", "Xx\nAa\nBb\nCc\nYy\n", FSMergerBySequence.MERGED); testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\nYy\n", "Aa\nBb\nZz\nCc\n", "Xx\nAa\nBb\nZz\nCc\nYy\n", FSMergerBySequence.MERGED); testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc", "Xx\nBb\nCc\n", "Xx\nBb\nCc", FSM... | public void testSVNSuite() throws IOException { testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd", "Aa\nBb\nCc\nEe", "Aa\nBb\nCc\n>\r\nDd=\r\nEe<\r\n", null, FSMergerBySequence.CONFLICTED); // test_three_way_merge_no_overlap testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\n", "Aa\nBb\nCc\nYy\n", "Xx\nAa\nBb\nCc\nYy\n", null, ... |
testDirect("Aa\nBb\nCc\nDd\nEe\n", "Aa\nXx\nBb\nCc\nYy\nEe\n", "Aa\nBb\nCc\nYy\nEe\nZz\n", "Aa\nXx\nBb\nCc\nYy\nEe\nZz\n", null, FSMergerBySequence.MERGED); testDirect("Aa\nBb\nCc\nDd\nEe\nFf\n", "Aa\nYy\nZz\nDd\nPp\nQq\nFf\n", "Pp\nQq\nAa\nBb\nCc\nDd\nPp\nQq\nFf\nPp\nQq\n", "Pp\nQq\nAa\nYy\nZz\nDd\nPp\nQq\nFf\nPp\nQq\... | testDirect("Aa\nBb\nCc\nDd\nEe\n", "Aa\nXx\nBb\nCc\nYy\nEe\n", "Aa\nBb\nCc\nYy\nEe\nZz\n", "Aa\nXx\nBb\nCc\nYy\nEe\nZz\n", FSMergerBySequence.MERGED); testDirect("Aa\nBb\nCc\nDd\nEe\nFf\n", "Aa\nYy\nZz\nDd\nPp\nQq\nFf\n", "Pp\nQq\nAa\nBb\nCc\nDd\nPp\nQq\nFf\nPp\nQq\n", "Pp\nQq\nAa\nYy\nZz\nDd\nPp\nQq\nFf\nPp\nQq\n", FS... | public void testSVNSuite() throws IOException { testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd", "Aa\nBb\nCc\nEe", "Aa\nBb\nCc\n>\r\nDd=\r\nEe<\r\n", null, FSMergerBySequence.CONFLICTED); // test_three_way_merge_no_overlap testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\n", "Aa\nBb\nCc\nYy\n", "Xx\nAa\nBb\nCc\nYy\n", null, ... |
testDirect("Aa\nBb\nCc\n", "", "", "", null, FSMergerBySequence.NOT_MODIFIED); testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd\nEe\nFf\n", "", ">" + FSMergerBySequence.DEFAULT_EOL + "Aa\nBb\nCc\nDd\nEe\nFf\n=" + FSMergerBySequence.DEFAULT_EOL + "<" + FSMergerBySequence.DEFAULT_EOL, null, FSMergerBySequence.CONFLICTED); test... | testDirect("Aa\nBb\nCc\n", "", "", "", FSMergerBySequence.NOT_MODIFIED); testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd\nEe\nFf\n", "", ">" + FSMergerBySequence.DEFAULT_EOL + "Aa\nBb\nCc\nDd\nEe\nFf\n=" + FSMergerBySequence.DEFAULT_EOL + "<" + FSMergerBySequence.DEFAULT_EOL, FSMergerBySequence.CONFLICTED); testDirect("Aa\n... | public void testSVNSuite() throws IOException { testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd", "Aa\nBb\nCc\nEe", "Aa\nBb\nCc\n>\r\nDd=\r\nEe<\r\n", null, FSMergerBySequence.CONFLICTED); // test_three_way_merge_no_overlap testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\n", "Aa\nBb\nCc\nYy\n", "Xx\nAa\nBb\nCc\nYy\n", null, ... |
testDirect("foo\nbar\nbaz\n", "foo\nnew_bar\nbaz\n", "zig\nfoo\nbar\nnew_baz\n", "zig\nfoo\nnew_bar\nnew_baz\n", null, FSMergerBySequence.MERGED); | testDirect("foo\nbar\nbaz\n", "foo\nnew_bar\nbaz\n", "zig\nfoo\nbar\nnew_baz\n", "zig\nfoo\nnew_bar\nnew_baz\n", FSMergerBySequence.MERGED); | public void testSVNSuite() throws IOException { testDirect("Aa\nBb\nCc\n", "Aa\nBb\nCc\nDd", "Aa\nBb\nCc\nEe", "Aa\nBb\nCc\n>\r\nDd=\r\nEe<\r\n", null, FSMergerBySequence.CONFLICTED); // test_three_way_merge_no_overlap testDirect("Aa\nBb\nCc\n", "Xx\nAa\nBb\nCc\n", "Aa\nBb\nCc\nYy\n", "Xx\nAa\nBb\nCc\nYy\n", null, ... |
public static String createLines(String text, String eol) { final StringBuffer lines = new StringBuffer(); for (int ch = 0; ch < text.length(); ch++) { lines.append(text.charAt(ch)); lines.append(eol); } return lines.toString(); | public static String createLines(String text) { return createLines(text, "\n"); | public static String createLines(String text, String eol) { final StringBuffer lines = new StringBuffer(); for (int ch = 0; ch < text.length(); ch++) { lines.append(text.charAt(ch)); lines.append(eol); } return lines.toString(); } |
localResult = QSequenceLineMedia.createBlocks(baseData, localData, null); latestResult = QSequenceLineMedia.createBlocks(baseData, latestData, null); | localResult = QSequenceLineMedia.createBlocks(baseData, localData); latestResult = QSequenceLineMedia.createBlocks(baseData, latestData); | public int merge(QSequenceLineRAData baseData, QSequenceLineRAData localData, QSequenceLineRAData latestData, OutputStream result) throws IOException {// dump("base", baseData);// dump("latest", latestData);// dump("local", localData); final QSequenceLineResult l... |
String message = (String) getCommandLine().getArgumentValue(SVNArgument.MESSAGE); | String message = getCommitMessage(); | private void runLocalToRemote(final PrintStream out, PrintStream err) throws SVNException { final String dstURL = getCommandLine().getURL(0); String srcPath = getCommandLine().getPathAt(0); if (matchTabsInPath(srcPath, err) || matchTabsInURL(dstURL, err)) { return; } St... |
String commitMessage = (String) getCommandLine().getArgumentValue(SVNArgument.MESSAGE); | String commitMessage = getCommitMessage(); | private void runRemote(PrintStream out, PrintStream err) throws SVNException { if (getCommandLine().getURLCount() != 2) { throw new SVNException("Please enter SRC and DST URL"); } String srcURL = getCommandLine().getURL(0); SVNRevision srcRevision = SVNRevision.parse((String) ... |
public EjbcaException(String message) { super(message); | public EjbcaException() { super(); | public EjbcaException(String message) { super(message); } |
Collection children = new ArrayList();; | Collection children = new ArrayList(); | public static void deleteLock(SVNLock lock, File reposRootDir) throws SVNException { String reposPath = lock.getPath(); String childToKill = null; Collection children = new ArrayList();; while(true){ FSReader.fetchLockFromDigestFile(null, reposPath, children, reposRootDir); ... |
break; | public static void deleteLock(SVNLock lock, File reposRootDir) throws SVNException { String reposPath = lock.getPath(); String childToKill = null; Collection children = new ArrayList();; while(true){ FSReader.fetchLockFromDigestFile(null, reposPath, children, reposRootDir); ... | |
public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ | private static void setLock(SVNLock lock, File reposRootDir) throws SVNException { | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); | SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempted to set a null lock"); | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
String thisPath = lock.getPath(); | String path = lock.getPath(); Collection children = new ArrayList(); | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
String digestPath = FSRepositoryUtil.getDigestPathFromPath(reposRootDir, thisPath); String[] splitDigestPath = digestPath.split("\\\\"); String newDigestFileComponent = splitDigestPath[splitDigestPath.length-1]; Collection children = new ArrayList(); SVNLock thisLock = FSReader.fetchLockFromDigestFile(new File(diges... | String digestFileName = FSRepositoryUtil.getDigestFromRepositoryPath(path); SVNLock fetchedLock = FSReader.fetchLockFromDigestFile(null, path, children, reposRootDir); | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
thisLock = lock; | fetchedLock = lock; | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
lastChild = newDigestFileComponent; | lastChild = digestFileName; | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
if(children.contains(lastChild)){ return; | if(!children.isEmpty() && children.contains(lastChild)){ break; | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
children.add(lastChild); } FSWriter.writeDigestLockFile(thisLock, children, thisPath, reposRootDir); if(thisPath.length() == 1 && thisPath.equals("/")){ return; | children.add(lastChild); | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
String[] splitThisPath = thisPath.split("/"); StringBuffer newThisPath = new StringBuffer(); int count = 0; do{ newThisPath.append(splitThisPath[count]); newThisPath.append("/"); count++; }while(count < splitThisPath.length-1); if(count != 1){ newThisPath.deleteCharAt(newThisPath.length()-1); | writeDigestLockFile(fetchedLock, children, path, reposRootDir); if("/".equals(path)){ break; | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
thisPath = new String(newThisPath); } | path = SVNPathUtil.removeTail(path); if("".equals(path)){ path = "/"; } children.clear(); } | public static void setLock(File reposRootDir, SVNLock lock)throws SVNException{ if(lock == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error: attempt to set a null lock"); SVNErrorManager.error(err); } String lastChild = ""; Stri... |
if(!token.equals(lock.getID())){ | if(token == null || !token.equals(lock.getID())){ | private static void unlock(String path, String token, String username, boolean breakLock, File reposRootDir) throws SVNException { /* This could return FS_NO_SUCH_LOCK or FS_LOCK_EXPIRED. */ SVNLock lock = FSReader.getLock(path, true, reposRootDir); /* Unless breaking the lock, we do some check... |
doUnlock(path, token, username, breakLock, reposRootDir); | FSWriteLock writeLock = FSWriteLock.getWriteLock(reposRootDir); synchronized(writeLock){ try{ writeLock.lock(); unlock(path, token, username, breakLock, reposRootDir); }finally{ writeLock.unlock(); FSWriteLock.realease(writeLock); } } | public static void unlockPath(String path, String token, String username, boolean breakLock, File reposRootDir) throws SVNException { /* Setup an array of paths in anticipation of the ra layers handling * multiple locks in one request (1.3 most likely). This is only * used by FSHooks.runPost... |
SVNErrorManager.error(err); | SVNErrorManager.error(err, svne); | public static void unlockPath(String path, String token, String username, boolean breakLock, File reposRootDir) throws SVNException { /* Setup an array of paths in anticipation of the ra layers handling * multiple locks in one request (1.3 most likely). This is only * used by FSHooks.runPost... |
public static void writeDigestLockFile(SVNLock lock, Collection children, String repositoryPath, File reposRootDir) throws SVNException { | private static void writeDigestLockFile(SVNLock lock, Collection children, String repositoryPath, File reposRootDir) throws SVNException { | public static void writeDigestLockFile(SVNLock lock, Collection children, String repositoryPath, File reposRootDir) throws SVNException { if(!ensureDirExists(FSRepositoryUtil.getDBLocksDir(reposRootDir), true)){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "Can't create a dir... |
p.unread(op2); | private ExpressionTreeNode parseAssignment(Preprocessor p) throws IOException, MapyrusException { ExpressionTreeNode expr, value; int op1, op2; expr = parseComparison(p); while (true) { /* * If next character is '=' then we have an assignment * to a variable. */ op1 = p.readNonSpace(); if (op1 == ... | |
retval = "NULL"; | if (mType == GEOMETRY_POINT) retval = "POINT EMPTY"; else if (mType == GEOMETRY_LINESTRING) retval = "LINESTRING EMPTY"; else if (mType == GEOMETRY_POLYGON) retval = "POLYGON EMPTY"; else if (mType == GEOMETRY_MULTIPOINT) retval = "MULTIPOINT EMPTY"; else if (mType == GEOMETRY_MULTILINESTRING) retval = "MULTILINESTRING... | public String toString() { String retval = null; DecimalFormat format; StringBuffer s; if (mType == STRING) retval = mStringValue; else if (mType == VARIABLE) retval = mVarname; else if (mType == NUMERIC) { double absValue = (mNumericValue >= 0) ? mNumericValue : -mNumericValue; /* * Print large or s... |
else | else if (mType == GEOMETRY_MULTILINESTRING || mType == GEOMETRY_MULTIPOLYGON) | public String toString() { String retval = null; DecimalFormat format; StringBuffer s; if (mType == STRING) retval = mStringValue; else if (mType == VARIABLE) retval = mVarname; else if (mType == NUMERIC) { double absValue = (mNumericValue >= 0) ? mNumericValue : -mNumericValue; /* * Print large or s... |
s = new StringBuffer("MULTILINESTRING ("); | s = new StringBuffer("MULTILINESTRING (("); | public String toString() { String retval = null; DecimalFormat format; StringBuffer s; if (mType == STRING) retval = mStringValue; else if (mType == VARIABLE) retval = mVarname; else if (mType == NUMERIC) { double absValue = (mNumericValue >= 0) ? mNumericValue : -mNumericValue; /* * Print large or s... |
s = new StringBuffer("MULTIPOLYGON (("); | s = new StringBuffer("MULTIPOLYGON ((("); | public String toString() { String retval = null; DecimalFormat format; StringBuffer s; if (mType == STRING) retval = mStringValue; else if (mType == VARIABLE) retval = mVarname; else if (mType == NUMERIC) { double absValue = (mNumericValue >= 0) ? mNumericValue : -mNumericValue; /* * Print large or s... |
s.append(")"); | s.append("))"); | public String toString() { String retval = null; DecimalFormat format; StringBuffer s; if (mType == STRING) retval = mStringValue; else if (mType == VARIABLE) retval = mVarname; else if (mType == NUMERIC) { double absValue = (mNumericValue >= 0) ? mNumericValue : -mNumericValue; /* * Print large or s... |
s.append("))"); | s.append(")))"); | public String toString() { String retval = null; DecimalFormat format; StringBuffer s; if (mType == STRING) retval = mStringValue; else if (mType == VARIABLE) retval = mVarname; else if (mType == NUMERIC) { double absValue = (mNumericValue >= 0) ? mNumericValue : -mNumericValue; /* * Print large or s... |
if (mGeometryValue[i] == PathIterator.SEG_MOVETO && i + 3 < mGeometryValue[0] && mGeometryValue[i + 3] != PathIterator.SEG_MOVETO) { s.append(" LINESTRING ("); String separator = ""; do { s.append(separator); s.append(mGeometryValue[i + 1]); s.append(" "); s.append(mGeometryValue[i + 2]); i += 3; separator = ","; } whi... | public String toString() { String retval = null; DecimalFormat format; StringBuffer s; if (mType == STRING) retval = mStringValue; else if (mType == VARIABLE) retval = mVarname; else if (mType == NUMERIC) { double absValue = (mNumericValue >= 0) ? mNumericValue : -mNumericValue; /* * Print large or s... | |
public static synchronized String generate(int lifespan) | public static synchronized String generate(String suffix, int lifespan) | public static synchronized String generate(int lifespan) { String retval; int random = (int)(Math.random() * 100000); long now = System.currentTimeMillis(); long expiry = now + lifespan; /* * Delete any previously generated temporary files that have expired. */ if (!mGeneratedFilenames.isEmpty()) { Transi... |
retval = "tmp" + mCounter + "a" + random; | retval = "tmp" + mCounter + "a" + random + "." + suffix; | public static synchronized String generate(int lifespan) { String retval; int random = (int)(Math.random() * 100000); long now = System.currentTimeMillis(); long expiry = now + lifespan; /* * Delete any previously generated temporary files that have expired. */ if (!mGeneratedFilenames.isEmpty()) { Transi... |
else { try { String property = System.getProperty(sub); if (property != null) retval = new Argument(Argument.STRING, property); else retval = new Argument(Argument.STRING, "undef"); } catch (SecurityException e) { retval = new Argument(Argument.STRING, "undef"); } } | public Argument getVariableValue(String varName) throws MapyrusException { Argument retval = null; String sub; double d; int i; Rectangle2D bounds; if (varName.startsWith(Mapyrus.PROGRAM_NAME + ".")) { sub = varName.substring(Mapyrus.PROGRAM_NAME.length() + 1); /* * Return internal/system variable. ... | |
String property = null; try { if (retval == null) { property = System.getProperty(varName); if (property != null) { d = Double.parseDouble(property); retval = new Argument(d); } } } catch (SecurityException e) { } catch (NumberFormatException e) { retval = new Argument(Argument.STRING, property); } | public Argument getVariableValue(String varName) throws MapyrusException { Argument retval = null; String sub; double d; int i; Rectangle2D bounds; if (varName.startsWith(Mapyrus.PROGRAM_NAME + ".")) { sub = varName.substring(Mapyrus.PROGRAM_NAME.length() + 1); /* * Return internal/system variable. ... | |
ItemIterator ii = Item.findAll(c); | if(myItem.getOwningCollection()==null) { myItem.setOwningCollection(collections[q]); myItem.update(); System.out.println("Set owner of item " + myItem.getID() + " to collection " + collections[q].getID()); } } } c.commit(); ii = Item.findAll(c); | public static void main(String [] argv) throws Exception { Context c = new Context(); // ve are superuser! c.setIgnoreAuthorization(true); ItemIterator ii = Item.findAll(c); while(ii.hasNext()) { boolean skipItem = false; ... |
if(myBundles[i].getName() != null) { System.out.println("Skipping this item - named bundles already found"); skipItem = true; break; } | public static void main(String [] argv) throws Exception { Context c = new Context(); // ve are superuser! c.setIgnoreAuthorization(true); ItemIterator ii = Item.findAll(c); while(ii.hasNext()) { boolean skipItem = false; ... | |
tri.close(); | public void removeBundle(Bundle b) throws SQLException, AuthorizeException, IOException { // Check authorisation AuthorizeManager.authorizeAction(ourContext, this, Constants.REMOVE); log.info(LogManager.getHeader(ourContext, "remove_bundle", "item_id=" + getID() + "... | |
statements.remove(stmt); | public void statementClosed(AbstractStatement stmt) throws SQLException { stmt.completeStatement(); statements.remove(stmt); connection.notifyStatementClosed(stmt); } | |
if (localTransaction.inTransaction()) | public void statementCompleted(AbstractStatement stmt) throws SQLException { statements.remove(stmt); try { if (localTransaction.inTransaction()) localTransaction.commit(); } catch(ResourceException ex) { try { ... | |
if (localTransaction.inTransaction()) | public void commit() throws SQLException { try { if (localTransaction.inTransaction()) localTransaction.commit(); } catch(ResourceException ex) { throw new FBSQLException(ex); } } | |
if (localTransaction.inTransaction()) | public void rollback() throws SQLException { try { if (localTransaction.inTransaction()) localTransaction.rollback(); } catch(ResourceException ex) { throw new FBSQLException(ex); } } | |
public InternalTransactionCoordinator(AbstractTransactionCoordinator coordinator) { this.coordinator = coordinator; | public InternalTransactionCoordinator() { | public InternalTransactionCoordinator(AbstractTransactionCoordinator coordinator) { this.coordinator = coordinator; } |
trans = c.mc.getLocalTransaction(); | FBDatabaseMetaData(FBConnection c) { this.c = c; //use the spi LocalTransaction that does not notify the ConnectionManager. trans = c.mc.getLocalTransaction(); } | |
if (catalog != null) { | if (catalog != null && !catalog.equals("") && !catalog.equals("%")) { | private void checkCatalogAndSchema(String catalog, String schema) throws SQLException { if (catalog != null) { throw new SQLException("Catalogs not supported"); } if (schema != null) { throw new SQLException("Schemas not supported"); } } |
if (schema != null) { | if (schema != null && (!schema.equals("")) && (!schema.equals("%"))) { | private void checkCatalogAndSchema(String catalog, String schema) throws SQLException { if (catalog != null) { throw new SQLException("Catalogs not supported"); } if (schema != null) { throw new SQLException("Schemas not supported"); } } |
throw new SQLException("Not yet implemented"); | return false; | public boolean deletesAreDetected(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | XSQLVAR[] xsqlvars = new XSQLVAR[8]; xsqlvars[0] = new XSQLVAR(); xsqlvars[0].sqltype = GDS.SQL_SHORT; xsqlvars[0].sqlname = "SCOPE"; xsqlvars[0].relname = "ROWIDENTIFIER"; xsqlvars[1] = new XSQLVAR(); xsqlvars[1].sqltype = GDS.SQL_VARYING; xsqlvars[1].sqllen = 31; xsqlvars[1].sqlind = 0; xsqlvars[1].sqlname = "COLUM... | public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { throw new SQLException("Not yet implemented"); } |
return doQuery(sql, params); | return c.doQuery(sql, params, statements); | public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { checkCatalogAndSchema(catalog, schema); Clause columnClause = new Clause("RF.RDB$FIELD_NAME", columnNamePattern); String sql = GET_COLUMN_PRIVILEGES_START; ... |
ResultSet rs = doQuery(sql, params); | ResultSet rs = c.doQuery(sql, params, statements); | public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { checkCatalogAndSchema(catalog, schemaPattern); Clause tableClause = new Clause("RF.RDB$RELATION_NAME", tableNamePattern); Clause columnClause = new C... |
rows.add(null); | public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { checkCatalogAndSchema(catalog, schemaPattern); Clause tableClause = new Clause("RF.RDB$RELATION_NAME", tableNamePattern); Clause columnClause = new C... | |
throw new SQLException("Not yet implemented"); | checkCatalogAndSchema(primaryCatalog, primarySchema); checkCatalogAndSchema(foreignCatalog, foreignSchema); String sql = GET_CROSS_KEYS; ArrayList params = new ArrayList(); params.add(foreignTable.toUpperCase()); params.add(primaryTable.toUpperCase()); ResultSet rs = c.doQuery(sql, params, statements); XSQLVAR[] xsql... | public ResultSet getCrossReference( String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable ) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | checkCatalogAndSchema(catalog, schema); String sql = GET_EXPORTED_KEYS; ArrayList params = new ArrayList(); params.add(table.toUpperCase()); ResultSet rs = c.doQuery(sql, params, statements); XSQLVAR[] xsqlvars = new XSQLVAR[14]; xsqlvars[0] = new XSQLVAR(); xsqlvars[0].sqltype = GDS.SQL_VARYING; xsqlvars[0].sqllen ... | public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | checkCatalogAndSchema(catalog, schema); String sql = GET_IMPORTED_KEYS; ArrayList params = new ArrayList(); params.add(table.toUpperCase()); ResultSet rs = c.doQuery(sql, params, statements); XSQLVAR[] xsqlvars = new XSQLVAR[14]; xsqlvars[0] = new XSQLVAR(); xsqlvars[0].sqltype = GDS.SQL_VARYING; xsqlvars[0].sqllen ... | public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | checkCatalogAndSchema(catalog, schema); String sql = GET_INDEX_INFO; ArrayList params = new ArrayList(); params.add(table.toUpperCase()); ResultSet rs = c.doQuery(sql, params, statements); XSQLVAR[] xsqlvars = new XSQLVAR[13]; xsqlvars[0] = new XSQLVAR(); xsqlvars[0].sqltype = GDS.SQL_VARYING; xsqlvars[0].sqllen = 3... | public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException { throw new SQLException("Not yet implemented"); } |
ResultSet rs = doQuery(sql, params); | ResultSet rs = c.doQuery(sql, params, statements); | public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { checkCatalogAndSchema(catalog, schema); String sql = GET_PRIMARY_KEYS; ArrayList params = new ArrayList(); params.add(table); ResultSet rs = doQuery(sql, params); ... |
rows.add(null); | public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { checkCatalogAndSchema(catalog, schema); String sql = GET_PRIMARY_KEYS; ArrayList params = new ArrayList(); params.add(table); ResultSet rs = doQuery(sql, params); ... | |
return doQuery(sql, params); | return c.doQuery(sql, params, statements); | public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException { checkCatalogAndSchema(catalog, schemaPattern); Clause procedureClause = new Clause("P.RDB$PROCEDURE_NAME", procedureN... |
return doQuery(sql, params); | return c.doQuery(sql, params, statements); | public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException { checkCatalogAndSchema(catalog, schemaPattern); Clause procedureClause = new Clause("RDB$PROCEDURE_NAME", procedureNamePattern); String sql = GET_PROCEDURES_START; ... |
return doQuery(sql, params); | return c.doQuery(sql, params, statements); | public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { checkCatalogAndSchema(catalog, schemaPattern); Clause tableClause = new Clause("RDB$RELATION_NAME", tableNamePattern); String sql = GET_TABLE_PRIVILEGES_START;... |
return doQuery(sql, params); | return c.doQuery(sql, params, statements); | public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException { if (tableNamePattern == null || "".equals(tableNamePattern)) tableNamePattern = "%"; checkCatalogAndSchema(catalog, schemaPattern); if (types == null... |
throw new SQLException("Not yet implemented"); | XSQLVAR[] xsqlvars = new XSQLVAR[6]; xsqlvars[0] = new XSQLVAR(); xsqlvars[0].sqltype = GDS.SQL_VARYING; xsqlvars[0].sqllen = 31; xsqlvars[0].sqlind = -1; xsqlvars[0].sqlname = "TYPE_CAT"; xsqlvars[0].relname = "UDT"; xsqlvars[1] = new XSQLVAR(); xsqlvars[1].sqltype = GDS.SQL_VARYING; xsqlvars[1].sqllen = 31; xsqlvar... | public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | XSQLVAR[] xsqlvars = new XSQLVAR[7]; xsqlvars[0] = new XSQLVAR(); xsqlvars[0].sqltype = GDS.SQL_SHORT; xsqlvars[0].sqlname = "SCOPE"; xsqlvars[0].relname = "VERSIONCOL"; xsqlvars[1] = new XSQLVAR(); xsqlvars[1].sqltype = GDS.SQL_VARYING; xsqlvars[1].sqllen = 31; xsqlvars[1].sqlind = 0; xsqlvars[1].sqlname = "COLUMN_N... | public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return false; | public boolean insertsAreDetected(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return false; | public boolean othersDeletesAreVisible(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return false; | public boolean othersInsertsAreVisible(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return false; | public boolean othersUpdatesAreVisible(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return false; | public boolean ownDeletesAreVisible(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return false; | public boolean ownInsertsAreVisible(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return false; | public boolean ownUpdatesAreVisible(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
return true; | return false; | public boolean supportsPositionedDelete() throws SQLException { return true; } |
return true; | return false; | public boolean supportsPositionedUpdate() throws SQLException { return true; } |
throw new SQLException("Not yet implemented"); | if (type==java.sql.ResultSet.TYPE_FORWARD_ONLY && concurrency == java.sql.ResultSet.CONCUR_READ_ONLY) return true; else return false; | public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | switch (type){ case java.sql.ResultSet.TYPE_FORWARD_ONLY: return true; default: return false; } | public boolean supportsResultSetType(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
return true; | return false; | public boolean supportsSelectForUpdate() throws SQLException { return true; } |
throw new SQLException("Not yet implemented"); | return false; | public boolean updatesAreDetected(int type) throws SQLException { throw new SQLException("Not yet implemented"); } |
public void changeFileProperty(String commitPath, String name, String value) throws SVNException { myCurrentFile.IsPropertiesChanged = true; | public void changeFileProperty(String commitPath, String name, String value) throws SVNException { if (name != null && !name.startsWith(SVNProperty.SVN_ENTRY_PREFIX) && !name.startsWith(SVNProperty.SVN_WC_PREFIX)) { myCurrentFile.IsPropertiesChanged = true; } | public void changeFileProperty(String commitPath, String name, String value) throws SVNException { myCurrentFile.IsPropertiesChanged = true; if (SVNProperty.COMMITTED_REVISION.equals(name) && value != null) { myCurrentFile.RemoteRevision = SVNRevision.parse(value); } else ... |
if (file.isDirectory()) { SVNEntries entries = myWCAccess.getAnchor().getEntries(); SVNEntry entry = entries.getEntry(myTarget, false); entries.close(); | SVNEntries entries = myWCAccess.getAnchor().getEntries(); SVNEntry entry = entries.getEntry(myTarget, false); SVNNodeKind kind = entry == null ? null : entry.getKind(); entries.close(); if (file.isDirectory() && (kind == null || kind == SVNNodeKind.DIR)) { | public SVNCommitInfo closeEdit() throws SVNException { if (myIsRootOpened) { return new SVNCommitInfo(myTargetRevision, null, null); } if (myTarget != null) { File file = myWCAccess.getAnchor().getFile(myTarget); if (file.isDirectory()) { SVNEntri... |
public void setRemoteStatus(SVNURL url, SVNStatusType contents, SVNStatusType props, SVNLock lock, SVNNodeKind kind, SVNRevision revision, Date date, String author) { setRemoteStatus(contents, props, lock, kind); myRemoteURL = url; myRemoteRevision = revision == null ? SVNRevision.UNDEFINED : revision; myRemoteDate = d... | public void setRemoteStatus(SVNStatusType contents, SVNStatusType props, SVNLock lock, SVNNodeKind kind) { if (contents == SVNStatusType.STATUS_ADDED && myRemoteContentsStatus == SVNStatusType.STATUS_DELETED) { contents = SVNStatusType.STATUS_REPLACED; } myRemoteContentsStatus = contents != null ? contents : myRemoteCo... | public void setRemoteStatus(SVNURL url, SVNStatusType contents, SVNStatusType props, SVNLock lock, SVNNodeKind kind, SVNRevision revision, Date date, String author) { setRemoteStatus(contents, props, lock, kind); myRemoteURL = url; myRemoteRevision = revision == null ? SVNRevision.UN... |
public SVNLock getLock(String url) { if (myRepositoryRoot == null || myLocks.isEmpty()) { | public SVNLock getLock(SVNURL url) { if (myRepositoryRoot == null || myLocks.isEmpty() || url == null) { | public SVNLock getLock(String url) { if (myRepositoryRoot == null || myLocks.isEmpty()) { return null; } url = url.substring(url.indexOf("://") + 3); url = url.substring(url.indexOf("/") + 1); url = url.substring(myRepositoryRoot.length()); if (!url.startsWith("/... |
url = url.substring(url.indexOf(": url = url.substring(url.indexOf("/") + 1); url = url.substring(myRepositoryRoot.length()); if (!url.startsWith("/")) { url = "/" + url; | String urlString = url.getPath(); String root = myRepositoryRoot.getPath(); String path; if (urlString.equals(root)) { path = "/"; } else { path = urlString.substring(root.length()); | public SVNLock getLock(String url) { if (myRepositoryRoot == null || myLocks.isEmpty()) { return null; } url = url.substring(url.indexOf("://") + 3); url = url.substring(url.indexOf("/") + 1); url = url.substring(myRepositoryRoot.length()); if (!url.startsWith("/... |
url = SVNEncodingUtil.uriDecode(url); return (SVNLock) myLocks.get(url); | return (SVNLock) myLocks.get(path); | public SVNLock getLock(String url) { if (myRepositoryRoot == null || myLocks.isEmpty()) { return null; } url = url.substring(url.indexOf("://") + 3); url = url.substring(url.indexOf("/") + 1); url = url.substring(myRepositoryRoot.length()); if (!url.startsWith("/... |
public void setUp() { try { v1=new ViewId(new org.jgroups.stack.IpAddress(InetAddress.getByName("localhost"), 1000), 22); v2=new ViewId(new org.jgroups.stack.IpAddress(InetAddress.getByName("localhost"), 1000), 21); v3=(ViewId)v1.clone(); } catch(Exception e) { log.error("ViewIdTest.setUp(): " + e); } | public void setUp() throws Exception { super.setUp(); try { v1=new ViewId(new org.jgroups.stack.IpAddress(InetAddress.getByName("localhost"), 1000), 22); v2=new ViewId(new org.jgroups.stack.IpAddress(InetAddress.getByName("localhost"), 1000), 21); v3=(ViewId)v1.clone(); } catch(Exception e) { System.err.println("ViewId... | public void setUp() { try { v1=new ViewId(new org.jgroups.stack.IpAddress(InetAddress.getByName("localhost"), 1000), 22); v2=new ViewId(new org.jgroups.stack.IpAddress(InetAddress.getByName("localhost"), 1000), 21); v3=(ViewId)v1.clone(); } catch(Exception e) { log.error("ViewIdTest.setUp(): " + e);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.