Package org.tmatesoft.hg.repo.HgChangelog

Examples of org.tmatesoft.hg.repo.HgChangelog.RawChangeset.user()


      if (l.getType() == Kind.Hg) {
        HgRepository r = l.getRepo();
        System.out.printf("%s (%s) has %d revisions\n", l.getLocation(), r.getLocation(), r.getChangelog().getLastRevision() + 1);
        if (r.getChangelog().getLastRevision() >= 0) {
          final RawChangeset c = r.getChangelog().range(TIP, TIP).get(0);
          System.out.printf("TIP: %s %s '%s'\n", c.user(), c.dateString(), c.comment());
        }
      }
    }
  }
View Full Code Here


      if (kind == Kind.Modified || kind == Kind.Added || kind == Kind.Removed /*&& RightBoundary is TIP*/) {
        // perhaps, also for Kind.Missing?
        return logHelper.getNextCommitUsername();
      }
    } else {
      return cset.user();
    }
    return null;
  }

  /**
 
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.