(non-PHPdoc)
@see Webcreate\Vcs.VcsInterface::checkout()
761268
public function checkout($dest)
    {
        $this->wc = new WorkingCopy($this, $dest);

        $this->dispatch(VcsEvents::PRE_CHECKOUT, new CheckoutEventData($this->getHead(), $dest));

        $this->wc->checkout();

        $this->dispatch(VcsEvents::POST_CHECKOUT, new CheckoutEventData($this->getHead(), $dest));
    }
1263841
public function initialize($url, $user = null, $password = null)
    {
        // stupid, but surpresses phpcs warnings
        $user;
        $password;

        if (is_dir($this->root)) {
            if (count(glob($this->root . '/*'))) {
                throw new \RuntimeException("Checkout of $url failed");
            }

            rmdir($this->root);
        }

        // Fix incorrect windows checkout URLs
        $url = preg_replace('(^file://([A-Za-z]):)', 'file:///\\1:', $url);

        $process = new \Arbit\VCSWrapper\HgCli\Process();
        $process->argument('clone');
        $process->argument(str_replace('\\', '/', $url));
        $process->argument(new \SystemProcess\Argument\PathArgument($this->root));
        $return = $process->execute();

        // Cache basic revision information for checkout and update
        // currentVersion property.
        $this->getResourceInfo();
    }
662795
def checkout(self, repo_dir, shared_dir, **kwargs):
        """"""
        del kwargs
        args = []
        for checkout_fn in _CHECKOUT_ARG_BUILDERS:
            args.extend(checkout_fn(shared_dir, repo_dir, self._args))
        return args
210579
def checkout_branch(self, branch):
        """"""

        _, stdout, stderr = self.git_exec(
            ['checkout', branch],
            with_extended_output=True)
        return '\n'.join([stderr, stdout])
1088778
public function process()
	{
		$view = $this->getView();

		try
		{
			parent::process();

			$context = $this->getContext();

			if( ( $param = $view->param( 'ca_extra' ) ) !== null ) {
				$context->getSession()->set( 'client/html/checkout/standard/address/extra', (array) $param );
			}

			$addresses = \Aimeos\Controller\Frontend::create( $context, 'basket' )->get()->getAddresses();

			// Test if addresses are available
			if( !isset( $view->standardStepActive ) && count( $addresses ) === 0 )
			{
				$view->standardStepActive = 'address';
				return false;
			}
		}
		catch( \Exception $e )
		{
			$this->getView()->standardStepActive = 'address';
			throw $e;
		}
	}
1028931
public function checkout($userId = null)
	{
		if (!$this->isNew())
		{
			$columns = $this->getStructure()->getTableColumns($this->getTableName());

			$data = [];

			if (isset($columns['checked_out_time']))
			{
				$now = new Date('now');
				$data['checked_out_time'] = $now->toSql();
			}

			if (isset($columns['checked_out']))
			{
				$userId = $userId ?: \User::get('id');
				$data['checked_out'] = $userId;
			}

			if (empty($data))
			{
				// There is no 'checked_out_time' or 'checked_out' column
				return true;
			}

			$this->set($data);

			// We build a simple update query as calling save()
			// can have unintended consequences when all we want
			// is to update two columns
			$query = $this->getQuery()
				->update($this->getTableName())
				->set($data)
				->whereEquals($this->getPrimaryKey(), $this->get($this->getPrimaryKey()));

			// @FIXME: Maybe unnecessary? Database may throw an exception on error
			//         so this might be pointless.
			if (!$query->execute())
			{
				$this->addError(__CLASS__ . '::' . __METHOD__ . '() failed');
				return false;
			}
		}

		return true;
	}
595701
def checkout(self, ref, cb=None):
        """"""
        if self.is_api:
            return self._checkout_api(ref, cb=cb)
        else:
            return self._checkout_fs(ref, cb=cb)
488905
public function checkOut($name, $dir = null, $mustRun = false, $quiet = false)
    {
        return (bool) $this->execute([
            'checkout',
            $name,
        ], $dir, $mustRun, $quiet);
    }
1282427
public function checkOut(User $user, Library $library, $circ_desk = 'DEFAULT_CIRC_DESK')
    {
        $postData = [
            'library'   => ['value' => $library->code],
            'circ_desk' => ['value' => $circ_desk],
        ];

        $data = $this->client->postJSON(
            $this->url('/loans', ['user_id' => $user->id]),
            $postData
        );

        return Loan::make($this->client, $user, $data->loan_id)
            ->init($data);
    }
939767
public function pull($remote = 'origin', $branch = 'master')
    {
        if (!$this->hasCheckout) {
            throw new \RuntimeException('This operation requires an active checkout.');
        }

        return $this->execute('pull', array($remote, $branch));
    }
680195
protected function checkStock()
    {
        if (!isset($this->params['items'])) {
            throw new ShopgateLibraryException(ShopgateLibraryException::PLUGIN_API_NO_ITEMS);
        }

        if (empty($this->response)) {
            $this->response = new ShopgatePluginApiResponseAppJson($this->trace_id);
        }

        $cart = new ShopgateCart();
        $cart->setItems($this->params['items']);
        $items        = $this->plugin->checkStock($cart);
        $responseData = array();

        if (!is_array($items)) {
            throw new ShopgateLibraryException(
                ShopgateLibraryException::PLUGIN_API_WRONG_RESPONSE_FORMAT,
                '$cartData Is type of : ' . is_object($items)
                    ? get_class($items)
                    : gettype($items)
            );
        }

        $cartItems = array();
        if (!empty($items)) {
            foreach ($items as $cartItem) {
                /** @var ShopgateCartItem $cartItem */
                if (!is_object($cartItem) || !($cartItem instanceof ShopgateCartItem)) {
                    throw new ShopgateLibraryException(
                        ShopgateLibraryException::PLUGIN_API_WRONG_RESPONSE_FORMAT,
                        '$cartItem Is type of : ' . is_object($cartItem)
                            ? get_class($cartItem)
                            : gettype($cartItem)
                    );
                }
                $item               = $cartItem->toArray();
                $notNeededArrayKeys = array('qty_buyable', 'unit_amount', 'unit_amount_with_tax');
                foreach ($notNeededArrayKeys as $key) {
                    if (array_key_exists($key, $item)) {
                        unset($item[$key]);
                    }
                }

                $cartItems[] = $item;
            }
        }

        $responseData["items"] = $cartItems;

        $this->responseData = $responseData;
    }
569990
private function onCheckoutCartSummary($data)
    {
        $restIn = $this->hlpReg->getRestInputParams();
        $cartId = $restIn[0];
        $canSeePv = $this->hlpCfgProvider->getCanSeePv(null, $cartId);
        /* add 'Can See PV' flag to the whole structure */
        $data[self::JSON_CAN_SEE_PV] = $canSeePv;
        if ($canSeePv) {
            /* add PV totals to cart */
            $segments = $data['total_segments'];
            $segments = $this->hlpCfgProvider->addPvToTotalSegments($segments, $cartId);
            $data['total_segments'] = $segments;
            /* add PV totals to items */
            $items = $data['items'];
            $updated = [];
            foreach ($items as $item) {
                $itemId = $item['item_id'];
                $total = $this->hlpCfgProvider->getCartItemPv($itemId);
                $item[self::JSON_ITEM_CAN_SEE_PV] = $canSeePv;
                $item[self::JSON_ITEM_PV_TOTAL] = $total;
                $updated[] = $item;
            }
            $data['items'] = $updated;
        }
        return $data;
    }
583134
def _checkout(self, treeish):
        '''
        
        '''

        return self.m(
            'checking out "%s"' % (treeish),
            cmdd=dict(cmd='git checkout %s' % (treeish), cwd=self.local),
            verbose=False
        )
923790
def git_checkout(repo_dir, ref, branch=None):
    
    command = ['git', 'checkout', '--force']
    if branch:
        command.extend(['-B', '{}'.format(branch)])
    command.append(ref)
    return execute_git_command(command, repo_dir=repo_dir)
86507
protected function checkoutLocalDeployBranch() {
    $this->taskExecStack()
      ->dir($this->deployDir)
      // Create new branch locally.We intentionally use stopOnFail(FALSE) in
      // case the branch already exists. `git checkout -B` does not seem to work
      // as advertised.
      // @todo perform this in a way that avoid errors completely.
      ->stopOnFail(FALSE)
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->exec("git checkout -b {$this->branchName}")
      ->run();
  }
1363578
public function executeAction()
    {
        /**
         * The execute action will generate the Paypal web
         * checkout form before redirecting.
         */
        $formView = $this
            ->paypalWebCheckoutManager
            ->generatePaypalForm();

        $data = $this
            ->engine
            ->render('PaypalWebCheckoutBundle:Payment:process.html.twig', [
                'form' => $formView,
            ]);

        return new Response($data);
    }
865035
protected function initCheckout()
    {
        $dir = dirname(__FILE__);

        //Require the CheckoutHTML interface/abstract class
        include_once $dir.'/checkout/checkouthtml.intf.php';

        //Iterate over all .class.php files in checkout/
        foreach (glob($dir.'/checkout/*.class.php') as $checkout) {
            if (!self::$debug) {
                ob_start();
            }
            include_once $checkout;

            $className = basename($checkout, '.class.php');
            $cObj = new $className;

            if ($cObj instanceof CheckoutHTML) {
                $cObj->init($this, $this->_eid);
                $this->coObjects[$className] = $cObj;
            }

            if (!self::$debug) {
                ob_end_clean();
            }
        }
    }