//@flow import React from 'react'; // TODO flow types ??? type Props = { repository: Object } class ProtocolInformation extends React.Component { render() { const { repository } = this.props; if (!repository._links.httpProtocol) { return null; } return (

Clone the repository

          hg clone {repository._links.httpProtocol.href}
        

Create a new repository

          
            hg init {repository.name}
            
echo "[paths]" > .hg/hgrc
echo "default = {repository._links.httpProtocol.href}" > .hg/hgrc
echo "# {repository.name}" > README.md
hg add README.md
hg commit -m "added readme"

hg push

Push an existing repository

          
            # add the repository url as default to your .hg/hgrc e.g:
            
default = {repository._links.httpProtocol.href}
# push to remote repository
hg push
); } } export default ProtocolInformation;