• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ISVNStatus类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getStatus

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
private List<ISVNStatus> getStatus(File path, boolean descend) throws LocalSubversionException {
    List<ISVNStatus> ret = new ArrayList<ISVNStatus>(20);                        
    ret.add(getSingleStatus(path));
    
    File[] children = getChildren(path);
    if(children != null) {
        for (int i = 0; i < children.length; i++) {
            if(!SvnUtils.isPartOfSubversionMetadata(children[i]) && !SvnUtils.isAdministrative(path)) {                                       
                if(descend && children[i].isDirectory()) {                
                    ret.addAll(getStatus(children[i], descend));                
                } else {
                    ret.add(getSingleStatus(children[i]));  // 
                }                   
            }
        }        
    }        
    return ret;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:19,代码来源:SvnWcParser.java


示例2: notifyChangedStatus

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
private void notifyChangedStatus(File file, boolean rec, ISVNStatus[] oldStatuses) throws SVNClientException {
    Map<File, ISVNStatus> oldStatusMap = new HashMap<File, ISVNStatus>();
    for (ISVNStatus s : oldStatuses) {
        oldStatusMap.put(s.getFile(), s);
    }
    ISVNStatus[] newStatuses = getStatus(file, rec, true);
    for (ISVNStatus newStatus : newStatuses) {
        ISVNStatus oldStatus = oldStatusMap.get(newStatus.getFile());
        if( (oldStatus == null && newStatus != null) ||
             oldStatus.getTextStatus() != newStatus.getTextStatus() ||
             oldStatus.getPropStatus() != newStatus.getPropStatus())
        {
            notificationHandler.notifyListenersOfChange(newStatus.getPath()); /// onNotify(cmd.getAbsoluteFile(s.getFile().getAbsolutePath()), null);
        }
   }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:17,代码来源:CommandlineClient.java


示例3: getTreeConflicts

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
private static Map<File, ISVNStatus> getTreeConflicts (File[] files) {
    Map<File, ISVNStatus> treeConflicts = new HashMap<File, ISVNStatus>(files.length);
    if (files.length > 0) {
        try {
            SvnClient client = Subversion.getInstance().getClient(false);
            FileStatusCache cache = Subversion.getInstance().getStatusCache();
            for (File file : files) {
                if ((cache.getStatus(file).getStatus() & FileInformation.STATUS_VERSIONED_CONFLICT_TREE) != 0) {
                    ISVNStatus status = SvnUtils.getSingleStatus(client, file);
                    if (status.hasTreeConflict()) {
                        treeConflicts.put(file, status);
                    }
                }
            }
        } catch (SVNClientException ex) {
            Subversion.LOG.log(Level.INFO, null, ex);
        }
    }
    return treeConflicts;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:ResolveConflictsAction.java


示例4: getPropertyConflicts

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
private static Map<File, ISVNStatus> getPropertyConflicts (File[] files) {
    Map<File, ISVNStatus> propertyConflicts = new HashMap<File, ISVNStatus>(files.length);
    if (files.length > 0) {
        try {
            SvnClient client = Subversion.getInstance().getClient(false);
            FileStatusCache cache = Subversion.getInstance().getStatusCache();
            for (File file : files) {
                if ((cache.getStatus(file).getStatus() & FileInformation.STATUS_VERSIONED_CONFLICT_CONTENT) != 0) {
                    ISVNStatus status = SvnUtils.getSingleStatus(client, file);
                    if (status.getPropStatus() == SVNStatusKind.CONFLICTED) {
                        propertyConflicts.put(file, status);
                    }
                }
            }
        } catch (SVNClientException ex) {
            Subversion.LOG.log(Level.INFO, null, ex);
        }
    }
    return propertyConflicts;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:ResolveConflictsAction.java


示例5: addFile

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
private void addFile(SvnClient client, File file, boolean recursively) throws SVNClientException {
    if(SvnUtils.isPartOfSubversionMetadata(file)) return;
    ISVNStatus status = SvnUtils.getSingleStatus(client, file);
    if(status.getTextStatus().equals(SVNStatusKind.UNVERSIONED)) {
        boolean isDir = file.isDirectory();
        if (isDir) {
            client.addDirectory(file, false);
        } else {
            client.addFile(file);
        }
        if(recursively && isDir) {
            File[] files = file.listFiles();
            if(files == null) return;
            for (File f : files) {
                addFile(client, f, recursively);
            }
        }
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:20,代码来源:SvnProperties.java


示例6: Setup

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
/**
 * Local file vs HEAD
 * @param baseFile
 * @param status remote status of the file
 */
public Setup(File baseFile, ISVNStatus status) {
    this.baseFile = baseFile;
    this.propertyName = null;
    this.secondRevision = null;
    title = baseFile.getName();
    String headTitle;
    ResourceBundle loc = NbBundle.getBundle(Setup.class);
    if (status.getRepositoryTextStatus().equals(SVNStatusKind.ADDED)) {
                firstRevision = REVISION_HEAD;
                headTitle = loc.getString("MSG_DiffPanel_RemoteNew");
            } else if (status.getRepositoryTextStatus().equals(SVNStatusKind.DELETED)) {
                firstRevision = null;
                headTitle = loc.getString("MSG_DiffPanel_RemoteDeleted");
            } else if (status.getRepositoryTextStatus().equals(SVNStatusKind.MODIFIED)) {
                firstRevision = REVISION_HEAD;
                headTitle = MessageFormat.format(loc.getString("MSG_DiffPanel_RemoteModified"), new Object [] { firstRevision });
            } else {
                firstRevision = REVISION_HEAD;
                headTitle = REVISION_HEAD.toString();
            }
    firstSource = new DiffStreamSource(baseFile, propertyName, REVISION_HEAD, headTitle);
    secondSource = new DiffStreamSource(baseFile, propertyName, REVISION_CURRENT, REVISION_CURRENT);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:29,代码来源:Setup.java


示例7: patchRevision

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void patchRevision(File[] fileArray, Number revision) {        
    for (File file : fileArray) {            
        synchronized(this) {        
            FileInformation status = getCachedStatus(file);
            ISVNStatus entry = status != null ? status.getEntry(file) : null;
            if(entry != null) {
                Number rev = entry.getRevision();
                if(rev == null) continue;
                if(rev.getNumber() != revision.getNumber()) {
                    FileInformation info = createFileInformation(file, new FakeRevisionStatus(entry, revision), REPOSITORY_STATUS_UNKNOWN);
                    File dir = file.getParentFile();
                    Map<File, FileInformation> files = getScannedFiles(dir);
                    Map<File, FileInformation> newFiles = new HashMap<File, FileInformation>(files);
                    newFiles.put(file, info);
                    turbo.writeEntry(dir, FILE_STATUS_MAP, newFiles.isEmpty() ? null : newFiles);
                }
            }
        }
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:FileStatusCache.java


示例8: add

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public static void add(File file) throws SVNClientException {
    ISVNStatus status = getSVNStatus(file);
    if(status.getTextStatus().equals(SVNStatusKind.UNVERSIONED)) {
        getClient().addFile(file);
    }
    if(file.isFile()) {
        return; 
    }
    File[] files = file.listFiles();
    if(files != null) {
        for (File f : files) {
            if(!isMetadata(f)) {
                add(f);
            }
        }            
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:18,代码来源:TestKit.java


示例9: testGetStatusWrongAmount

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetStatusWrongAmount() throws Exception {                                
    File folder = createFolder("folder");        
    File folder1 = createFolder(folder, "folder1");        
    File folder2 = createFolder(folder, "folder2");        
    File file1 = createFolder(folder2, "file1");        
    
    add(folder);
    add(folder1);
    add(folder2);
    add(file1);
    commit(getWC());
            
    ISVNStatus[] s1 = getNbClient().getStatus(folder, true, false);

    // returns crap (4 entries) only for the cli which was intentionaly implemted that way
    // to stay compatible with svnClientAdapter's commandline client.
    // javahl and svnkit should return a zero length array
    // commandline no lomger parses metadata, returns the same as javahl and svnkit
    assertEquals(0, s1.length);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:ParsedStatusTestHidden.java


示例10: status

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
private void status(File file, boolean descend, boolean getAll, boolean contactServer, boolean ignoreExternals, int c, boolean shouldFail) throws Exception {        
    ISVNStatus[] sNb;
    try {
        sNb  = getNbClient().getStatus(file, descend, getAll, contactServer, ignoreExternals);
        if (shouldFail) {
            // there's an issue with tyhe selected client, works differently from javahl client
            // when this starts failing, it means the client's behavior is fixed
            fail("This should fail: " + file);
        }
    } catch (SVNClientException ex) {
        assertTrue("Not supposed to fail:" + ex.getMessage(), shouldFail);
        assertTrue(SvnClientExceptionHandler.isUnversionedResource(ex.getMessage()));
        return;
    }
    assertEquals(c, sNb.length);
    ISVNStatus[] sRef = getFullWorkingClient().getStatus(file, descend, getAll, contactServer, ignoreExternals);
    assertStatus(sRef, sNb);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:19,代码来源:StatusTestHidden.java


示例11: testGetSingleStatusNoChanges

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusNoChanges() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/no-changes/testapp/Main.java");
    assertTrue(myFile.exists());
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/Main.java", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.NORMAL, parsedStatus.getTextStatus());
    assertEquals(2, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    Date expectedDate = SvnWcUtils.parseSvnDate("2006-04-12T10:43:46.371180Z");
    assertEquals(expectedDate, parsedStatus.getLastChangedDate());
    assertEquals(2, parsedStatus.getLastChangedRevision().getNumber());
    assertEquals("ed", parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.FILE, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.NORMAL, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:24,代码来源:SvnWcParserTest.java


示例12: testGetSingleStatusNoChangesNewFormat

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusNoChangesNewFormat() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/new-format-no-changes/testapp/Main.java");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/Main.java", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.NORMAL, parsedStatus.getTextStatus());
    assertEquals(16, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    Date expectedDate = SvnWcUtils.parseSvnDate("2006-08-05T03:42:58.306031Z");
    assertEquals(expectedDate, parsedStatus.getLastChangedDate());
    assertEquals(16, parsedStatus.getLastChangedRevision().getNumber());
    assertEquals("ed", parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.FILE, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.NORMAL, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:SvnWcParserTest.java


示例13: testGetSingleStatusFileChanges

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusFileChanges() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/file-changes/testapp/Main.java");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/Main.java", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.MODIFIED, parsedStatus.getTextStatus());
    assertEquals(2, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    Date expectedDate = SvnWcUtils.parseSvnDate("2006-04-12T10:43:46.371180Z");
    assertEquals(expectedDate, parsedStatus.getLastChangedDate());
    assertEquals(2, parsedStatus.getLastChangedRevision().getNumber());
    assertEquals("ed", parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.FILE, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.NORMAL, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:SvnWcParserTest.java


示例14: testGetSingleStatusFileChangesNewFormat

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusFileChangesNewFormat() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/new-format-file-changes/testapp/AnotherMain.java");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/AnotherMain.java", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.MODIFIED, parsedStatus.getTextStatus());
    assertEquals(16, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    Date expectedDate = SvnWcUtils.parseSvnDate("2006-04-25T07:05:57.738276Z");
    assertEquals(expectedDate, parsedStatus.getLastChangedDate());
    assertEquals(10, parsedStatus.getLastChangedRevision().getNumber());
    assertEquals("ed", parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.FILE, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.NORMAL, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:SvnWcParserTest.java


示例15: testGetSingleStatusFileUnknown

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusFileUnknown() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/file-unknown/testapp/ReadMe.txt");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/ReadMe.txt", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getTextStatus());
    assertEquals(0, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    assertNull(parsedStatus.getLastChangedDate());
    assertEquals(0, parsedStatus.getLastChangedRevision().getNumber());
    assertNull(parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.UNKNOWN, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:SvnWcParserTest.java


示例16: testGetSingleStatusFileUnknownNewFormat

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusFileUnknownNewFormat() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/new-format-file-unknown/testapp/readme.txt");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/readme.txt", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getTextStatus());
    assertEquals(0, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    assertNull(parsedStatus.getLastChangedDate());
    assertEquals(0, parsedStatus.getLastChangedRevision().getNumber());
    assertNull(parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.UNKNOWN, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:SvnWcParserTest.java


示例17: testGetSingleStatusFileUnknownAnywhere

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
/**
 * Tests a specific case... where the file doesn't exist, and there is no entry in the SVN
 * files, but it's still being queried by the module.  Return unversioned
 */
public void testGetSingleStatusFileUnknownAnywhere() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/no-changes/testapp/ReadMe.txt");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/ReadMe.txt", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getTextStatus());
    assertEquals(0, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    assertNull(parsedStatus.getLastChangedDate());
    assertEquals(0, parsedStatus.getLastChangedRevision().getNumber());
    assertNull(parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.UNKNOWN, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:26,代码来源:SvnWcParserTest.java


示例18: testGetSingleStatusFileUnknownAnywhereNewFormat

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
/**
 * Tests a specific case... where the file doesn't exist, and there is no entry in the SVN
 * files, but it's still being queried by the module.  Return unversioned.  Working copy is
 * the format as of SVN 1.4.0
 */
public void testGetSingleStatusFileUnknownAnywhereNewFormat() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/new-format-no-changes/testapp/readme.txt");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/readme.txt", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getTextStatus());
    assertEquals(0, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    assertNull(parsedStatus.getLastChangedDate());
    assertEquals(0, parsedStatus.getLastChangedRevision().getNumber());
    assertNull(parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.UNKNOWN, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.UNVERSIONED, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:27,代码来源:SvnWcParserTest.java


示例19: testGetSingleStatusFileAdded

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusFileAdded() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/file-added/testapp/ReadMe.txt");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/ReadMe.txt", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.ADDED, parsedStatus.getTextStatus());
    assertEquals(0, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    assertNull(parsedStatus.getLastChangedDate());
    assertEquals(-1, parsedStatus.getLastChangedRevision().getNumber());
    assertNull(parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.FILE, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.NONE, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:SvnWcParserTest.java


示例20: testGetSingleStatusFileAddedNewFormat

import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入依赖的package包/类
public void testGetSingleStatusFileAddedNewFormat() throws Exception {
    File myFile = new File(dataRootDir + "/SvnWcParser/new-format-file-added/testapp/ReadMe.txt");
    ISVNStatus parsedStatus = svnWcParser.getSingleStatus(myFile);
    assertFalse(parsedStatus.isCopied());
    assertEquals("svn://gonzo/testRepos/trunk/testApp/src/testapp/ReadMe.txt", parsedStatus.getUrl().toString());
    assertEquals(SVNStatusKind.ADDED, parsedStatus.getTextStatus());
    assertEquals(0, parsedStatus.getRevision().getNumber());
    assertNull(parsedStatus.getConflictNew());
    assertNull(parsedStatus.getConflictOld());
    assertNull(parsedStatus.getConflictWorking());
    assertEquals(myFile, parsedStatus.getFile());
    assertNull(parsedStatus.getLastChangedDate());
    assertEquals(-1, parsedStatus.getLastChangedRevision().getNumber());
    assertNull(parsedStatus.getLastCommitAuthor());
    assertEquals(SVNNodeKind.FILE, parsedStatus.getNodeKind());
    assertEquals(myFile.getPath(), parsedStatus.getPath());
    assertEquals(SVNStatusKind.NONE, parsedStatus.getPropStatus());
    assertNull(parsedStatus.getLockComment());
    assertNull(parsedStatus.getLockOwner());
    assertNull(parsedStatus.getLockCreationDate());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:SvnWcParserTest.java



注:本文中的org.tigris.subversion.svnclientadapter.ISVNStatus类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EditableWSDLPort类代码示例发布时间:2022-05-23
下一篇:
Java DomainSocketWatcher类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap