Package com.aragost.javahg.internals

Examples of com.aragost.javahg.internals.UnexpectedCommandOutputException


                Integer removed = in.readDecimal();
                in.mustMatch(FILES_REMOVED);
                Integer unresolved = in.readDecimal();
                in.mustMatch(" files unresolved\n".getBytes());
                if (merged == null || removed == null || unresolved == null) {
                    throw new UnexpectedCommandOutputException(this.command, null);
                }
                if (unresolved.intValue() == 0) {
                    this.mergeConflicts = Collections.emptyList();
                    // If there is merge conflicts it will be lazy
                    // intialized
                }
            } else if (in.match(USE_RESOLVE_EXPLANATION)) {
                // ignore
            } else if (in.match(BRANCH_MERGE_EXPLANATION)) {
                // ignore
            } else {
                if (whenUnknowReturn) {
                    return;
                } else {
                    throw new UnexpectedCommandOutputException(Utils.readStream(in,
                            command.getRepository().getServer().getDecoder()));
                }
            }
            if (endPattern != null) {
                String fileName = in.textUpTo(endPattern);
View Full Code Here


                Integer removed = in.readDecimal();
                in.mustMatch(FILES_REMOVED);
                Integer unresolved = in.readDecimal();
                in.mustMatch(" files unresolved\n".getBytes());
                if (merged == null || removed == null || unresolved == null) {
                    throw new UnexpectedCommandOutputException(this.command, null);
                }
                if (unresolved.intValue() == 0) {
                    this.mergeConflicts = Collections.emptyList();
                    // If there is merge conflicts it will be lazy
                    // intialized
                }
            } else if (in.match(USE_RESOLVE_EXPLANATION)) {
                // ignore
            } else if (in.match(USE_RESOLVE_SHORT_EXPLANATION)) {
                // ignore
            } else if (in.match(BRANCH_MERGE_EXPLANATION)) {
                // ignore
            } else if (in.match(LARGEFILES_CHANGED)) {
               // ignore
            } else if (in.match(CHANGESET)) {
                Utils.consumeAll(in);
            } else if (in.find(LARGEFILES_UPDATED)) {
               in.upTo('\n'); // ignore largefiles statistics line. e.g. 2 largefiles updated, 0 removed
            } else {
                if (whenUnknowReturn) {
                    return;
                } else {
                    throw new UnexpectedCommandOutputException(Utils.readStream(in,
                            command.getRepository().newDecoder()));
                }
            }
            if (endPattern != null) {
                String fileName = in.textUpTo(endPattern);
View Full Code Here

              }

              // TODO: should clean up be called here? If so it should be for all
              // other uses of launchIterator in a finally block
              // cleanUp();
                throw new UnexpectedCommandOutputException(this, line);
            }
        }
        return result;
    }
View Full Code Here

                Integer removed = in.readDecimal();
                in.mustMatch(FILES_REMOVED);
                Integer unresolved = in.readDecimal();
                in.mustMatch(" files unresolved\n".getBytes());
                if (merged == null || removed == null || unresolved == null) {
                    throw new UnexpectedCommandOutputException(this.command, null);
                }
                if (unresolved.intValue() == 0) {
                    this.mergeConflicts = Collections.emptyList();
                    // If there is merge conflicts it will be lazy
                    // intialized
                }
            } else if (in.match(USE_RESOLVE_EXPLANATION)) {
                // ignore
            } else if (in.match(USE_RESOLVE_SHORT_EXPLANATION)) {
                // ignore
            } else if (in.match(BRANCH_MERGE_EXPLANATION)) {
                // ignore
            } else {
                if (whenUnknowReturn) {
                    return;
                } else {
                    throw new UnexpectedCommandOutputException(Utils.readStream(in,
                            command.getRepository().newDecoder()));
                }
            }
            if (endPattern != null) {
                String fileName = in.textUpTo(endPattern);
View Full Code Here

TOP

Related Classes of com.aragost.javahg.internals.UnexpectedCommandOutputException

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.