{% load i18n %} {% load native %}

{% trans "Mercurial repository quickstart" %}

{% trans "New repository" %}

{% blocktrans %}

If you want to create new repository simply follow example below.

{% endblocktrans %}
{% highlight_block bash cssclass="code-highlight" %} hg init {{ project.slug }} cd {{ project.slug }} echo "This is readme" >> README hg add README hg commit -m "Initial commit" echo -e "[paths]\ndefault={{ clone_url }}" >> .hg/hgrc hg push {% endhighlight_block %}

{% trans "Existing repo" %}

{% blocktrans %}

If you already have repository and you wish to push it here you would need to add remote to your repo and push it back.

{% endblocktrans %}
{% highlight_block bash cssclass="code-highlight" %} cd EXISTING_REPO_PATH echo -e "[paths]\ndefault={{ clone_url }}" >> .hg/hgrc hg push {% endhighlight_block %}