Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-313

baazar : Check out command fails to report an error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-rc1
    • 1.2
    • None

    Description

      BazaarCheckOutCommand line 71 has the following code:

              // Do the actual checkout
              String[] checkout_cmd = new String[]{BRANCH_CMD, url, checkoutDir.getAbsolutePath()};
              BazaarConsumer checkout_consumer = new BazaarConsumer( getLogger() );
              BazaarUtils.execute( checkout_consumer, getLogger(), checkoutDir.getParentFile(), checkout_cmd );
      
              // Do inventory to find list of checkedout files
              String[] inventory_cmd = new String[]{INVENTORY_CMD};
              BazaarCheckOutConsumer consumer = new BazaarCheckOutConsumer( getLogger(), checkoutDir );
              ScmResult result = BazaarUtils.execute( consumer, getLogger(), checkoutDir, inventory_cmd );
      
              return new CheckOutScmResult( consumer.getCheckedOutFiles(), result );
      

      This code doesn't check for the error in the branch command, so when that fails the error is not reported correctly.

      Attachments

        Activity

          People

            olamy Olivier Lamy
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: