Package org.eclipse.jgit.api.errors

Examples of org.eclipse.jgit.api.errors.MultipleParentsNotAllowedException


          srcObjectId = src.getObjectId();
        RevCommit srcCommit = revWalk.parseCommit(srcObjectId);

        // get the parent of the commit to cherry-pick
        if (srcCommit.getParentCount() != 1)
          throw new MultipleParentsNotAllowedException(
              MessageFormat.format(
                  JGitText.get().canOnlyCherryPickCommitsWithOneParent,
                  srcCommit.name(),
                  Integer.valueOf(srcCommit.getParentCount())));
View Full Code Here


          srcObjectId = src.getObjectId();
        RevCommit srcCommit = revWalk.parseCommit(srcObjectId);

        // get the parent of the commit to revert
        if (srcCommit.getParentCount() != 1)
          throw new MultipleParentsNotAllowedException(
              MessageFormat.format(
                  JGitText.get().canOnlyRevertCommitsWithOneParent,
                  srcCommit.name(),
                  Integer.valueOf(srcCommit.getParentCount())));
View Full Code Here

            for ( final ObjectId src : commits ) {
                final RevCommit srcCommit = revWalk.parseCommit( src );

                // get the parent of the commit to cherry-pick
                if ( srcCommit.getParentCount() != 1 ) {
                    throw new IOException( new MultipleParentsNotAllowedException(
                            MessageFormat.format(
                                    JGitText.get().canOnlyCherryPickCommitsWithOneParent,
                                    srcCommit.name(),
                                    Integer.valueOf( srcCommit.getParentCount() ) ) ) );
                }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.api.errors.MultipleParentsNotAllowedException

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.