Examples of addRevision()


Examples of org.evolizer.versioncontrol.cvs.model.entities.Transaction.addRevision()

                        revision.setPreviousRevision(latestRevision);
                    }
                    file.addRevision(revision);
                    revision.addRelease(fCurrRelease);
                    fCurrRelease.addRevision(revision);
                    currTrans.addRevision(revision);
                    LOGGER.debug("Created Revision " + revision.getNumber() + " for file " + file.getName()
                            + " in release " + fCurrRelease.getName());
                }
            } else {
                LOGGER.info("Commit " + commit.getSha() + " was empty so I'm skipping it");
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.Transaction.addRevision()

    SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
    Date date = df.parse("2006/01/02 01:02:03");
    transaction.setStarted(date);
    transaction.setFinished(date);
    Revision rev = new Revision("1.1");
    transaction.addRevision(rev);
   
    ModificationReport modReport = new ModificationReport();
    modReport.setAuthor(new Person());
    rev.setReport(modReport);
   
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.Transaction.addRevision()

            precedingCheckInTime = currentCheckInTime;
            precedingLogMessage = currentLogMessage;
            // checkInTime of the current revision is temporarly the point in time where the current transaction
            // finished until we find a newer revision.
            transaction.setFinished(new Date(currentCheckInTime));
            transaction.addRevision(revision);

            // The revision.getFile() == null check is needed for testcases --> we did not want to initialize the whole
            // object tree, so file can be null.
            LOGGER.debug("Added revision " + ((revision.getFile() == null) ? "null" : revision.getFile().getName())
                    + " - " + revision.getNumber() + " to transaction.");
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.VersionedFile.addRevision()

                    Revision latestRevision = file.getLatestRevision();
                    if (latestRevision != null) {
                        latestRevision.setNextRevision(revision);
                        revision.setPreviousRevision(latestRevision);
                    }
                    file.addRevision(revision);
                    revision.addRelease(fCurrRelease);
                    fCurrRelease.addRevision(revision);
                    currTrans.addRevision(revision);
                    LOGGER.debug("Created Revision " + revision.getNumber() + " for file " + file.getName()
                            + " in release " + fCurrRelease.getName());
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.VersionedFile.addRevision()

    Revision rev2 = new Revision("2");
    rev2.setReport(mr2);
    Revision rev3 = new Revision("3");
    rev3.setReport(mr3);   
   
    file1.addRevision(rev1);
    file1.addRevision(rev2);
    file1.addRevision(rev3);
    VersionedFile loadedFile = saveAndReloadUniqueFromDB(file1,
        "from File f where f.path = 'foobar'", VersionedFile.class);
    assertNotNull(loadedFile);
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.VersionedFile.addRevision()

    rev2.setReport(mr2);
    Revision rev3 = new Revision("3");
    rev3.setReport(mr3);   
   
    file1.addRevision(rev1);
    file1.addRevision(rev2);
    file1.addRevision(rev3);
    VersionedFile loadedFile = saveAndReloadUniqueFromDB(file1,
        "from File f where f.path = 'foobar'", VersionedFile.class);
    assertNotNull(loadedFile);
    assertEquals(rev3.getId(), loadedFile.getLatestRevision().getId());
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.VersionedFile.addRevision()

    Revision rev3 = new Revision("3");
    rev3.setReport(mr3);   
   
    file1.addRevision(rev1);
    file1.addRevision(rev2);
    file1.addRevision(rev3);
    VersionedFile loadedFile = saveAndReloadUniqueFromDB(file1,
        "from File f where f.path = 'foobar'", VersionedFile.class);
    assertNotNull(loadedFile);
    assertEquals(rev3.getId(), loadedFile.getLatestRevision().getId());
    assertEquals(rev3.getNumber(), loadedFile.getLatestRevision().getNumber());
View Full Code Here

Examples of org.evolizer.versioncontrol.svn.model.entities.SVNVersionedFile.addRevision()

                // I also need to create a new File, as it is actually done by the SVN
                // It's the same of the old one, but with a different path
                SVNVersionedFile newFile = (SVNVersionedFile) createFile(newRevisionFileName);
                newRevision.setChangeSet(changeSet);
                changeSet.addRevision(newRevision); // Transaction -> SVNRevision
                newFile.addRevision(newRevision); // File -> SVNRevision
                newRevision.setFile(newFile); // SVNRevision -> File
                // Keep track of a new file ancestor
                newRevision.setAncestor(oldRevision);
                // I check whether I'm connecting the new SVNRevision to a Branch or to a Release
                if ((branch != null) && (release == null)) {
View Full Code Here

Examples of org.evolizer.versioncontrol.svn.model.entities.SVNVersionedFile.addRevision()

            SVNRevision newRevision = new SVNRevision("" + currentRevisionNum);
            // Usual SVNRevision initialization
            changeSet.addRevision(newRevision); // Transaction -> SVNRevision
            newRevision.setChangeSet(changeSet); // SVNRevision -> Transaction
            newRevision.setAncestor(revision);
            toUpdate.addRevision(newRevision); // File -> SVNRevision
            newRevision.setFile(toUpdate); // SVNRevision -> File
            newRevision.setReport(report); // SVNRevision -> ModificationReport
            if (release != null) {
                release.addReleaseRevision(newRevision); // Release -> SVNRevision
                LOGGER.debug(NLS.bind(MapperMessages.SVNModelMapper_addedFileToRelease, new String[]{
View Full Code Here

Examples of org.jayasoft.woj.common.model.search.Hit.addRevision()

              results.add(hit);
            }
            countModuleHit++;
          }
          // not stricly necessary, but sometimes lucene doesn't find the revisions in the second step...
          hit.addRevision(doc.get("path"), doc.get("revision"));
        }
        Long nextResults =  i == hits.length()?null:new Long(startIndex+RESULTS_PER_PAGE);
        Long previousResults = startIndex == 0?null:new Long(startIndex-RESULTS_PER_PAGE);
       
        // then we fill in revisions
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.