• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ISVNLogMessageChangePath类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath的典型用法代码示例。如果您正苦于以下问题:Java ISVNLogMessageChangePath类的具体用法?Java ISVNLogMessageChangePath怎么用?Java ISVNLogMessageChangePath使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ISVNLogMessageChangePath类属于org.tigris.subversion.svnclientadapter包,在下文中一共展示了ISVNLogMessageChangePath类的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: assertLogs

点赞 3

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
private void assertLogs(ISVNLogMessage[] logsRef, ISVNLogMessage[] logsNb) {
    assertEquals(logsRef.length, logsNb.length);
    for (int i = 0; i < logsNb.length; i++) {
        ISVNLogMessage lognb = logsNb[i];
        ISVNLogMessage logref = logsRef[i];            
        
        assertEquals(logref.getAuthor(), lognb.getAuthor());
        assertEquals(logref.getDate().toString(), lognb.getDate().toString());
        assertEquals(logref.getMessage(), lognb.getMessage());
        assertEquals(logref.getRevision(), lognb.getRevision());
        
        ISVNLogMessageChangePath[] pathsnb = lognb.getChangedPaths();
        ISVNLogMessageChangePath[] pathsref = lognb.getChangedPaths();
        assertChangePaths(pathsref, pathsnb);
    }
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:17,
代码来源:LogTestHidden.java

示例2: assertChangePaths

点赞 3

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
private void assertChangePaths(ISVNLogMessageChangePath[] pathsref, ISVNLogMessageChangePath[] pathsnb) {

        assertEquals(pathsref.length, pathsnb.length);

        Arrays.sort(pathsref, new ChangePathComparator());
        Arrays.sort(pathsnb, new ChangePathComparator());

        for (int j = 0; j < pathsref.length; j++) {
            ISVNLogMessageChangePath pathref = pathsref[j];
            ISVNLogMessageChangePath pathnb = pathsnb[j];

            assertEquals(pathref.getAction(), pathnb.getAction());
            assertEquals(pathref.getCopySrcPath(), pathnb.getCopySrcPath());
            assertEquals(pathref.getCopySrcRevision(), pathnb.getCopySrcRevision());
            assertEquals(pathref.getPath(), pathnb.getPath());
        }
    }
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:18,
代码来源:LogTestHidden.java

示例3: getPathsOnDemand

点赞 3

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
private ISVNLogMessageChangePath[] getPathsOnDemand(SVNUrl url) {
ISVNLogMessage[] tmpMessage;
ISVNClientAdapter client = null;
      try {
          client = SVNProviderPlugin.getPlugin().getSVNClient(); // errors will not log to console
          SVNProviderPlugin.disableConsoleLogging(); 
          tmpMessage = client.getLogMessages(url, getRevision(), getRevision(), true);
          SVNProviderPlugin.enableConsoleLogging(); 
       if (tmpMessage != null && tmpMessage.length > 0)
	    return tmpMessage[0].getChangedPaths();
	else
	    return null;
      } catch (Exception e) {
          SVNProviderPlugin.enableConsoleLogging(); 
          return null;
      } finally {
       SVNProviderPlugin.getPlugin().getSVNClientManager().returnSVNClient(client);
      }
  }
 

开发者ID:subclipse,
项目名称:subclipse,
代码行数:20,
代码来源:LogEntry.java

示例4: getRemoteCopiedTo

点赞 3

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public ISVNStatus getRemoteCopiedTo(boolean getAll) throws Exception {
	if (remoteCopiedTo == null && !remoteCopiedToRetrieved) {
		remoteCopiedToRetrieved = true;
		logMessages = getLogMessages();
		if (logMessages != null) {
			for (int i = 0; i < logMessages.length; i++) {
				ISVNLogMessageChangePath[] changePaths = logMessages[i].getChangedPaths();
				for (int j = 0; j < changePaths.length; j++) {
					if (changePaths[j].getAction() == 'A' && changePaths[j].getCopySrcPath() != null) {
						if ((svnResource.getUrl() != null && svnResource.getUrl().toString().endsWith(changePaths[j].getCopySrcPath())) || changePaths[j].getCopySrcPath().endsWith(svnResource.getIResource().getFullPath().toString())) {
							statuses = getStatuses(getAll);
							for (int k = 0; k < statuses.length; k++) {
								if (statuses[k].getUrl() != null && statuses[k].getUrl().toString().endsWith(changePaths[j].getPath())) {
									remoteCopiedTo = statuses[k];
									return remoteCopiedTo;
								}
							}
						}
					}
				}
			}
		}
	}		
	return remoteCopiedTo;
}
 

开发者ID:subclipse,
项目名称:subclipse,
代码行数:26,
代码来源:ResolveTreeConflictWizard.java

示例5: testBasicLogUrlMessage

点赞 3

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public void testBasicLogUrlMessage() throws Exception {
    // create the working copy
    OneTest thisTest = new OneTest("basicLogUrlMessages",
            getGreekTestConfig());

    // modify file iota
    File iota = new File(thisTest.getWorkingCopy(), "iota");
    PrintWriter iotaPW = new PrintWriter(new FileOutputStream(iota, true));
    iotaPW.print("new appended text for rho");
    iotaPW.close();

    assertEquals("wrong revision number from commit", 2, client.commit(
            new File[] { thisTest.getWCPath() }, "iota modified", true));

    ISVNLogMessage lm[] = client.getLogMessages(new SVNUrl(thisTest
            .getUrl()
            + "/iota"), new SVNRevision.Number(1), SVNRevision.HEAD, true);
    assertEquals("wrong number of objects", 2, lm.length);
    assertEquals("wrong message", "Log Message", lm[0].getMessage());
    assertEquals("wrong message", "iota modified", lm[1].getMessage());
    ISVNLogMessageChangePath cp[] = lm[1].getChangedPaths();
    assertEquals("wrong number of chang pathes", 1, cp.length);
}
 

开发者ID:subclipse,
项目名称:svnclientadapter,
代码行数:24,
代码来源:LogTest.java

示例6: testUncommitedRenameLogMessage

点赞 3

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
/**
 * test the SVNClientInfo.logMessage functionality on outgoing/uncommitted rename/move
 * 
 * @throws Throwable
 */
public void testUncommitedRenameLogMessage() throws Throwable {
    // create the working copy
    OneTest thisTest = new OneTest("ucommitedRenameLogMessage", getGreekTestConfig());

    // move file iota
    File iota = new File(thisTest.getWorkingCopy(), "iota");
    File iota2 = new File(thisTest.getWorkingCopy(), "iota2");
    client.move(iota, iota2, true);
    
    ISVNLogMessage lm[] = client.getLogMessages(iota2, new SVNRevision.Number(1), SVNRevision.HEAD, true);
    assertEquals("wrong number of objects", 1, lm.length);
    assertEquals("wrong message", "Log Message", lm[0].getMessage());
    assertEquals("wrong revision", 1, lm[0].getRevision().getNumber());
    assertEquals("wrong user", "cedric", lm[0].getAuthor());
    assertNotNull("changed paths set", lm[0].getChangedPaths());
    ISVNLogMessageChangePath cp[] = lm[0].getChangedPaths();
    assertEquals("wrong number of chang pathes", 20, cp.length);
}
 

开发者ID:subclipse,
项目名称:svnclientadapter,
代码行数:24,
代码来源:LogTest.java

示例7: endElement

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
@Override
public void endElement(String uri, String localName, String name) throws SAXException {
    tag = null;
    if (ENTRY_ELEMENT_NAME.equals(name)) {                      
        if(values != null) {
                                                                               
            String author = (String) values.get(AUTHOR_ELEMENT_NAME);
            if(author == null) author = "";
            Date date = null;
            String dateValue = (String) values.get(DATE_ELEMENT_NAME);                                                
            if (dateValue == null) throw new SAXException("'date' tag expected under 'logentry'");                        
            try {
                date = dateFormat.parse(dateValue);
            } catch (ParseException ex) {
                // ignore
                
            }
            String msg = (String) values.get(MSG_ELEMENT_NAME);
            if(msg == null) msg = "";

            SVNRevision.Number rev = getRevision((String) values.get(REVISION_ATTRIBUTE));
            
            List<Path> pathsList = getPathList();
            ISVNLogMessageChangePath[] paths;  
            if(pathsList.size() > 0) {
                paths = new SVNLogMessageChangePath[pathsList.size()];
                for (int i = 0; i < pathsList.size(); i++) {
                    Path path = pathsList.get(i);
                    paths[i] = new SVNLogMessageChangePath(path.path, getRevision(path.copyRev), path.copyPath, path.action);
                }
            } else {
                paths = new SVNLogMessageChangePath[] {};
            }
                
            logs.add(new LogMessage(msg, rev, author, date, paths));
            
            values = null;
        }
    }
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:41,
代码来源:LogCommand.java

示例8: LogMessage

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public LogMessage(String msg, Number rev, String author, Date date, ISVNLogMessageChangePath[] paths) {
    this.msg = msg;
    this.rev = rev;
    this.author = author;
    this.date = date;
    this.paths = paths;
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:8,
代码来源:LogCommand.java

示例9: Event

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public Event (ISVNLogMessageChangePath changedPath, boolean underRoots, String displayAction) {
    this.changedPath = changedPath;
    name = changedPath.getPath().substring(changedPath.getPath().lastIndexOf('/') + 1);
    path = changedPath.getPath().substring(0, changedPath.getPath().lastIndexOf('/'));
    originalPath = changedPath.getCopySrcPath();
    originalName = originalPath == null ? null : originalPath.substring(originalPath.lastIndexOf('/') + 1);
    this.underRoots = underRoots;
    this.action = displayAction == null ? Character.toString(changedPath.getAction()) : displayAction;
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:10,
代码来源:RepositoryRevision.java

示例10: initFakeRootEvent

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public void initFakeRootEvent() {
    fakeRootEvents = new LinkedList<Event>();
    for (final File selectionRoot : selectionRoots) {
        Event e = new Event(new ISVNLogMessageChangePath() {
            private String path;
            @Override
            public String getPath() {
                if(path == null) {
                    try {
                        path = SvnUtils.getRelativePath(selectionRoot);
                        if (!path.startsWith("/")) { //NOI18B
                            path = "/" + path; //NOI18B
                        }
                    } catch (SVNClientException ex) {
                        Subversion.LOG.log(Level.INFO, selectionRoot.getAbsolutePath(), ex);
                        path = "/"; //NOI18B
                    }
                }
                return path;
            }
            @Override
            public Number getCopySrcRevision() {
                return null;
            }
            @Override
            public String getCopySrcPath() {
                return null;
            }
            @Override
            public char getAction() {
                return '?';
            }
        }, true, null);
        e.setFile(selectionRoot);
        fakeRootEvents.add(e);
    }
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:38,
代码来源:RepositoryRevision.java

示例11: logLimit

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
private void logLimit(Log log) throws Exception {                                
    File file = createFile("file");
    add(file);
    write(file, "1");        
    commit(file, "msg1");
    ISVNInfo info1 = getInfo(file);        
    
    write(file, "2");
    commit(file, "msg2");
    ISVNInfo info2 = getInfo(file);
    
    write(file, "3");
    commit(file, "msg3");

    ISVNLogMessage[] logsNb = null;
    switch(log) {
        case file:
            logsNb = getNbClient().getLogMessages(file, new SVNRevision.Number(0), SVNRevision.HEAD, false, true, 2);
            break;
        case url:
            logsNb = getNbClient().getLogMessages(getFileUrl(file), null, new SVNRevision.Number(0), SVNRevision.HEAD, false, true, 2);
            break;
        default:
            fail("no idea!");
    }
    
    // test
    assertEquals(2, logsNb.length);         
    String testName = getName();        
    assertLogMessage(info1, logsNb[0], "msg1",  new ISVNLogMessageChangePath[] { new ChangePath('A', "/" + testName + "/" + testName + "_wc/file", null, null) });
    assertLogMessage(info2, logsNb[1], "msg2",  new ISVNLogMessageChangePath[] { new ChangePath('M', "/" + testName + "/" + testName + "_wc/file", null, null) });
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:33,
代码来源:LogTestHidden.java

示例12: assertLogMessage

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
private void assertLogMessage(ISVNInfo info, ISVNLogMessage logsNb, String msg, ISVNLogMessageChangePath[] changePaths) {
    assertEquals(info.getLastCommitAuthor(), logsNb.getAuthor());
    assertEquals(info.getLastChangedDate().toString(), logsNb.getDate().toString());
    assertEquals(msg, logsNb.getMessage());
    assertEquals(info.getRevision(), logsNb.getRevision());
    assertChangePaths(changePaths, logsNb.getChangedPaths());
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:8,
代码来源:LogTestHidden.java

示例13: getLogEntryChangePaths

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public LogEntryChangePath[] getLogEntryChangePaths() {
	ISVNLogMessageChangePath[] changePaths = null;
	if (SVNProviderPlugin.getPlugin().getSVNClientManager().isFetchChangePathOnDemand()) {
		SVNUrl url = resource.getRepository().getRepositoryRoot();
		if (url == null)
		    url = updateRootUrl(resource);
		changePaths = getPathsOnDemand(url);
		if (changePaths == null) {
		    // Root URL is probably bad.  Run svn info to retrieve the root URL and
		    // update it in the repository.
		    SVNUrl url2 = updateRootUrl(resource);
		    if (!url.toString().equals(url2.toString()))
		        changePaths = getPathsOnDemand(url);
		    // one last try using the resource URL
		    if (changePaths == null)
		        changePaths = getPathsOnDemand(resource.getUrl());
		    
		    // Still nothing, just return an empty array
		    if (changePaths == null)
				changePaths = new ISVNLogMessageChangePath[0];
		}
	} else {
		changePaths = logMessage.getChangedPaths();
	}
		
    LogEntryChangePath[] logEntryChangePaths = new LogEntryChangePath[changePaths.length]; 
    for (int i = 0; i < changePaths.length; i++) {
    	logEntryChangePaths[i] = new LogEntryChangePath(this,changePaths[i]);
    }
    return logEntryChangePaths;
}
 

开发者ID:subclipse,
项目名称:subclipse,
代码行数:32,
代码来源:LogEntry.java

示例14: toNode

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public Node toNode(ISVNLogMessage lm, ISVNLogMessageChangePath cp) {
	Node node = new Node();
	node.setAction(cp.getAction());
	node.setAuthor(lm.getAuthor());
	node.setCopySrcPath(cp.getCopySrcPath());
	node.setCopySrcRevision(cp.getCopySrcRevision().getNumber());
	node.setMessage(lm.getMessage());
	node.setPath(cp.getPath());
	node.setRevision(lm.getRevision().getNumber());
	node.setRevisionDate(lm.getDate());
	return node;
}
 

开发者ID:subclipse,
项目名称:subclipse,
代码行数:13,
代码来源:Cache.java

示例15: convertChangePaths

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
static ISVNLogMessageChangePath[] convertChangePaths(Set<ChangePath> changePaths) {
      if (changePaths == null)
          return new SVNLogMessageChangePath[0];
      SVNLogMessageChangePath[] jhlChangePaths = new SVNLogMessageChangePath[changePaths.size()];
      int i =0;
      for (ChangePath path : changePaths) {
      	jhlChangePaths[i] = new JhlLogMessageChangePath(path);
      	i++;
}
      return jhlChangePaths;
  }
 

开发者ID:subclipse,
项目名称:svnclientadapter,
代码行数:12,
代码来源:JhlConverter.java

示例16: testBasicLogMessage

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
/**
 * test the basic SVNClientInfo.logMessage functionality
 * 
 * @throws Throwable
 */
public void testBasicLogMessage() throws Throwable {
    // create the working copy
    OneTest thisTest = new OneTest("basicLogMessages", getGreekTestConfig());

    // get the commit message of the initial import and test it
    ISVNLogMessage lm[] = client.getLogMessages(thisTest.getWCPath(),
            new SVNRevision.Number(1), SVNRevision.HEAD);
    assertEquals("wrong number of objects", 1, lm.length);
    assertEquals("wrong message", "Log Message", lm[0].getMessage());
    assertEquals("wrong revision", 1, lm[0].getRevision().getNumber());
    assertEquals("wrong user", "cedric", lm[0].getAuthor());
    assertNotNull("changed paths set", lm[0].getChangedPaths());
    ISVNLogMessageChangePath cp[] = lm[0].getChangedPaths();
    assertEquals("wrong number of chang pathes", 20, cp.length);

    ISVNLogMessageChangePath cpA = null;
    for (int i = 0; i < cp.length; i++) {
        if ("/A".equals(cp[i].getPath())) {
            cpA = cp[i];
            break;
        }
    }
    assertNotNull("/A is not in the changed pathes", cpA);
    assertEquals("wrong path", "/A", cpA.getPath());
    assertEquals("wrong copy source rev", null, cpA.getCopySrcRevision());
    assertNull("wrong copy source path", cpA.getCopySrcPath());
    assertEquals("wrong action", 'A', cpA.getAction());
}
 

开发者ID:subclipse,
项目名称:svnclientadapter,
代码行数:34,
代码来源:LogTest.java

示例17: CmdLineLogMessage

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
CmdLineLogMessage(
        SVNRevision.Number rev, 
        String author, 
        Date date, 
        String msg,
        ISVNLogMessageChangePath[] logMessageChangePaths){
    this.rev = rev;
    this.author = author;
    this.date = date;
    this.msg = msg;
    this.logMessageChangePaths = logMessageChangePaths;
}
 

开发者ID:subclipse,
项目名称:svnclientadapter,
代码行数:13,
代码来源:CmdLineLogMessage.java

示例18: getChangedPaths

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public ISVNLogMessageChangePath[] getChangedPaths() {
    return paths;
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:4,
代码来源:LogCommand.java

示例19: getChangedPaths

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public ISVNLogMessageChangePath[] getChangedPaths() {
    return changedPaths;
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:4,
代码来源:AnnotateLine.java

示例20: setChangedPaths

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public void setChangedPaths(ISVNLogMessageChangePath[] changedPaths) {
    this.changedPaths = changedPaths;
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:4,
代码来源:AnnotateLine.java

示例21: getChangedPath

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public ISVNLogMessageChangePath getChangedPath() {
    return changedPath;
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:4,
代码来源:RepositoryRevision.java

示例22: compare

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
@Override
public int compare(ISVNLogMessageChangePath o1, ISVNLogMessageChangePath o2) {
    return o1.getPath().compareTo(o2.getPath());
}
 

开发者ID:apache,
项目名称:incubator-netbeans,
代码行数:5,
代码来源:LogTestHidden.java

示例23: writeLogEntryAsPlaintext

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
private void writeLogEntryAsPlaintext( ISVNLogMessage logMessage, BufferedWriter writer ) throws IOException {
    //Non-verbose
    //    ------------------------------------------------------------------------
    //    r2233 | markphip | 2006-05-22 22:16:34 +0200 (po, 22 V 2006) | 3 lines
    //
    //    Improve error reporting in Lock/Unlock messages.  It now outputs the erro
    //    message that is created by the client adapter, which includes more info s
    //    as the user that holds the lock on the file.
    //    ------------------------------------------------------------------------
    //    r2221 | markphip | 2006-05-19 17:29:46 +0200 (pi, 19 V 2006) | 1 line
    //
    //    JavaSVN 1.0.5
    //    ------------------------------------------------------------------------

    //Verbose
    //    ------------------------------------------------------------------------
    //    r2233 | markphip | 2006-05-22 22:16:34 +0200 (po, 22 V 2006) | 3 lines
    //    Changed paths:
    //       M /trunk/subclipse/core/lib/svnClientAdapter.jar
    //       M /trunk/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/jav
    //    ahl/JhlNotificationHandler.java
    //
    //    Improve error reporting in Lock/Unlock messages.  It now outputs the error
    //    message that is created by the client adapter, which includes more info such
    //    as the user that holds the lock on the file.
    //    ------------------------------------------------------------------------
    //    r2221 | markphip | 2006-05-19 17:29:46 +0200 (pi, 19 V 2006) | 1 line
    //    Changed paths:
    //       M /branches/1.0.x/subclipse/core/lib/javasvn.jar
    //       M /branches/1.0.x/svnClientAdapter/lib/javasvn.jar
    //       M /trunk/subclipse/core/lib/javasvn.jar
    //       M /trunk/svnClientAdapter/lib/javasvn.jar
    //       M /trunk/www/subclipse/changes.html
    //
    //    JavaSVN 1.0.5
    //    ------------------------------------------------------------------------

    writer.write( "------------------------------------------------------------------------" );
    writer.newLine();
    writer.write( 'r' );
    writer.write( logMessage.getRevision().toString() );
    writer.write( " | " );
    writer.write( logMessage.getAuthor() );
    writer.write( " | " );
    writer.write( logMessage.getDate().toString() );
    //    writer.write(" | ");
    //    writer.write();
    //    writer.write(" lines");
    //    if (.length > 1) {
    //      writer.write('s');
    //    }
    if( changedpathes ) {
        writer.write( "Changed paths:" );
        writer.newLine();
        for( ISVNLogMessageChangePath changepathlogmessage : logMessage.getChangedPaths() ) {
            writer.write( "   " + changepathlogmessage.getAction() + " " );
            writer.write( changepathlogmessage.getPath() );
            writer.newLine();
        }
    }

    writer.newLine();
    writer.newLine();
    writer.write( logMessage.getMessage() );
    writer.newLine();
}
 

开发者ID:subclipse,
项目名称:svnant,
代码行数:67,
代码来源:Log.java

示例24: LogEntryChangePath

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public LogEntryChangePath(ILogEntry logEntry, ISVNLogMessageChangePath logMessageChangePath) {
    this.logMessageChangePath = logMessageChangePath;
    this.logEntry = logEntry;
}
 

开发者ID:subclipse,
项目名称:subclipse,
代码行数:5,
代码来源:LogEntryChangePath.java

示例25: writeLogMessage

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
private void writeLogMessage(ISVNLogMessage logMessage, int level, boolean writingTempFile) throws IOException {
		RandomAccessFile revRaf = null;
		RandomAccessFile logRaf = null;
		if (writingTempFile) {
			revRaf = revisionsTempRaf;
			logRaf = logMessagesTempRaf;
		} else {
			revRaf = revisionsRaf;
			logRaf = logMessagesRaf;			
		}
		
		long revision = logMessage.getRevision().getNumber();
		long fp = logRaf.getFilePointer();
//		if (writingTempFile) System.out.println("writing rev "+revision+" at "+fp+" "+revisionsTempRaf.getFilePointer());
//		else System.out.println("writing rev "+revision+" at "+fp+" "+revisionsRaf.getFilePointer());
		revRaf.writeLong(fp);
		logRaf.writeLong(revision);
		logRaf.writeLong(logMessage.getDate().getTime());
		logRaf.writeUTF(notNull(logMessage.getAuthor()));
		String message = notNull(logMessage.getMessage());
		if (message.length() > 64000) {
			message = message.substring(0, 64397) + "...";
		}
		logRaf.writeUTF(message);
		
		ISVNLogMessageChangePath[] changePaths = logMessage.getChangedPaths();
		logRaf.writeInt(changePaths.length);
		
		// common starting path in all changed paths
		int cc = 0;
		if(changePaths.length > 1) {
			String a = changePaths[0].getPath();
			String b = null;
			for (int i = 1; i < changePaths.length; i++) {
				b = changePaths[i].getPath();
				cc = commonChars(a, b, cc);
				a = b;
			}
			logRaf.writeUTF(a.substring(0, cc));
		}
		
		
		for (int i = 0; i < changePaths.length; i++) {
			ISVNLogMessageChangePath changePath = changePaths[i];

			logRaf.writeChar(changePath.getAction());
			logRaf.writeUTF(changePath.getPath().substring(cc));
			long copySrcRevision = 0;
			if(changePath.getCopySrcRevision() != null && changePath.getCopySrcPath() != null) {
				copySrcRevision = changePath.getCopySrcRevision().getNumber();
				logRaf.writeLong(copySrcRevision);
				logRaf.writeUTF(changePath.getCopySrcPath());
			} else {
				logRaf.writeLong(copySrcRevision);
			}
		}
		
		if(level == 0 && (!logMessage.hasChildren())) {
			logRaf.writeInt(0);
//			System.out.println("A. Children: 0");
		}
	}
 

开发者ID:subclipse,
项目名称:subclipse,
代码行数:63,
代码来源:Cache.java

示例26: getChangedPaths

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public ISVNLogMessageChangePath[] getChangedPaths() {
	return changedPaths;
}
 

开发者ID:subclipse,
项目名称:subclipse,
代码行数:4,
代码来源:LogMessage.java

示例27: getChangedPaths

点赞 2

import org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath; //导入依赖的package包/类
public ISVNLogMessageChangePath[] getChangedPaths() {
	return logMessageChangePaths;
}
 

开发者ID:subclipse,
项目名称:svnclientadapter,
代码行数:4,
代码来源:CmdLineLogMessage.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)