Package com.aragost.javahg.internals

Examples of com.aragost.javahg.internals.HgInputStream.skip()


        List<Integer> revisions = Lists.newArrayList();
        List<String> lines = Lists.newArrayList();
        HgInputStream stream = launchStream(file);
        while (stream.peek() != -1) {
            revisions.add(stream.revisionUpTo(':'));
            stream.skip(1);
            lines.add(stream.textUpTo('\n'));
        }
        Map<Integer, Changeset> revNumMap = createRevNumMap(repo, revisions);
        int size = lines.size();
        List<AnnotateLine> result = Lists.newArrayListWithCapacity(size);
View Full Code Here


        Map<Integer, String> dataMap = Maps.newHashMap();
        List<AnnotateLine> result = Lists.newArrayList();
        while (stream.peek() != -1) {
            Integer rev = stream.decimalIntUpTo(':');
            logCmd.rev(rev.toString());
            stream.skip(1);
            String data = stream.textUpTo('\n');
            dataMap.put(rev, data);
        }
        List<Changeset> changesets = logCmd.execute();
        for (Changeset changeset : changesets) {
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.