src/Rocketeer/Binaries/Vcs/Hg.php
private function getCredentials()
    {
        $options = ['--config ui.interactive' => 'no', '--config auth.x.prefix' => 'http://'];

        $repository = $this->credentials->getCurrentRepository();
        if ($user = $repository->username) {
            $options['--config auth.x.username'] = $user;
        }
        if ($pass = $repository->password) {
            $options['--config auth.x.password'] = $pass;
        }

        return $options;
    }
private function getCredentials()
    {
        $options = ['--config ui.interactive' => 'no', '--config auth.x.prefix' => 'http://'];

        $repository = $this->credentials->getCurrentRepository();
        if ($user = $repository->username) {
            $options['--config auth.x.username'] = $user;
        }
        if ($pass = $repository->password) {
            $options['--config auth.x.password'] = $pass;
        }

        return $options;
    }
private function getCredentials ( ) { $ options = [ '--config ui.interactive' => 'no' , '--config auth.x.prefix' => 'http://' ] ; $ repository = $ this -> credentials -> getCurrentRepository ( ) ; if ( $ user = $ repository -> username ) { $ options [ '--config auth.x.username' ] = $ user ; } if ( $ pass = $ repository -> password ) { $ options [ '--config auth.x.password' ] = $ pass ; } return $ options ; }
Get the credentials required for cloning.

@return array
Get the credentials required for cloning .