Examples of mustMatch()


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

     * @return old branch name
     * @throws IOException
     */
    public String clean() throws IOException {
        HgInputStream stream = launchStream("--clean");
        stream.mustMatch(CLEAN_PREFIX);
        String oldName = stream.textUpTo('\n');
        stream.consumeAll();
        return oldName;
    }

View Full Code Here

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

                stream.consumeAll();
                return Collections.emptyList();
            }
            List<Bookmark> result = Lists.newArrayList();
            while (stream.peek() != -1) {
                stream.mustMatch(' ');
                boolean active = stream.read() == '*';
                stream.mustMatch(' ');
                String name = stream.textUpTo(' ');
                stream.upTo(':');
                String node = stream.textUpTo('\n');
View Full Code Here

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

            }
            List<Bookmark> result = Lists.newArrayList();
            while (stream.peek() != -1) {
                stream.mustMatch(' ');
                boolean active = stream.read() == '*';
                stream.mustMatch(' ');
                String name = stream.textUpTo(' ');
                stream.upTo(':');
                String node = stream.textUpTo('\n');
                Bookmark bookmark = new Bookmark(repo.changeset(node), name, active);
                result.add(bookmark);
View Full Code Here

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

     * @return old branch name
     * @throws IOException
     */
    public String clean() throws IOException {
        HgInputStream stream = launchStream("--clean");
        stream.mustMatch(CLEAN_PREFIX);
        String oldName = stream.textUpTo('\n');
        stream.consumeAll();
        return oldName;
    }

View Full Code Here

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

     * @return The new tip of the repository
     */
    public Changeset execute() {
        HgInputStream stream = launchStream();
        try {
            stream.mustMatch(REPOSITORY_TIP_ROLLBACK_REVSION);
            int rev = stream.decimalIntUpTo(' ');
            stream.consumeAll();
            return Utils.single(LogCommand.on(getRepository()).rev(String.valueOf(rev)).execute());
        } catch (IOException e) {
            throw new RuntimeIOException(e);
View Full Code Here

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

            if (stream.match(NO_BOOKMARKS)) {
                return Collections.emptyList();
            }
            List<Bookmark> result = Lists.newArrayList();
            while (stream.peek() != -1) {
                stream.mustMatch(' ');
                boolean active = stream.read() == '*';
                stream.mustMatch(' ');
                String name = stream.textUpTo(' ');
                stream.upTo(':');
                String node = stream.textUpTo('\n');
View Full Code Here

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

            }
            List<Bookmark> result = Lists.newArrayList();
            while (stream.peek() != -1) {
                stream.mustMatch(' ');
                boolean active = stream.read() == '*';
                stream.mustMatch(' ');
                String name = stream.textUpTo(' ');
                stream.upTo(':');
                String node = stream.textUpTo('\n');
                Bookmark bookmark = new Bookmark(repo.changeset(node), name, active);
                result.add(bookmark);
View Full Code Here

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

                stream.consumeAll();
                return Collections.emptyList();
            }
            List<Bookmark> result = Lists.newArrayList();
            while (stream.peek() != -1) {
                stream.mustMatch(' ');
                boolean active = stream.read() == '*';
                stream.mustMatch(' ');
                String name = stream.textUpTo(':');
                name = name.substring(0, name.lastIndexOf(' ')).trim();
                String node = stream.textUpTo('\n');
View Full Code Here

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

            }
            List<Bookmark> result = Lists.newArrayList();
            while (stream.peek() != -1) {
                stream.mustMatch(' ');
                boolean active = stream.read() == '*';
                stream.mustMatch(' ');
                String name = stream.textUpTo(':');
                name = name.substring(0, name.lastIndexOf(' ')).trim();
                String node = stream.textUpTo('\n');
                Bookmark bookmark = new Bookmark(repo.changeset(node), name, active);
                result.add(bookmark);
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.