Package nl.topicus.onderwijs.dashboard.datatypes

Examples of nl.topicus.onderwijs.dashboard.datatypes.Commit


              curCommit.getSha());
          fullCommits.put(curCommit.getSha(), fullCommit);
        }
        curCommit = fullCommit;
      }
      ret.add(new Commit(project, curCommit));
    }
    return ret;
  }
View Full Code Here


          SVNRevision.HEAD, SVNRevision.create(0), true, true, 10,
          new ISVNLogEntryHandler() {
            @Override
            public void handleLogEntry(SVNLogEntry logEntry)
                throws SVNException {
              ret.add(new Commit(project, logEntry));
            }
          });
      clientManager.dispose();
      return ret;
    } catch (SVNException e) {
View Full Code Here

      private List<Commit> createRandomCommits(Key key) {
        Random random = new Random();
        List<Commit> ret = new ArrayList<Commit>();
        for (int count = 0; count < 5; count++) {
          Commit commit = new Commit();
          commit.setProject(key);
          long rev = Math.abs(random.nextLong());
          if (rev < HEX_10_DIGITS)
            rev += HEX_10_DIGITS + 1;
          commit.setRevision(Long.toString(rev, 16).substring(0, 8));
          commit.setDateTime(new Date(System.currentTimeMillis()
              - random.nextInt(3600000)));
          commit.setMessage("random commit with long message");
          commit.setAuthor("random");
          ret.add(commit);
        }
        return ret;
      }
View Full Code Here

TOP

Related Classes of nl.topicus.onderwijs.dashboard.datatypes.Commit

Copyright © 2018 www.massapicom. 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.