Hg

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 7: Line 7:
 
[paths]
 
[paths]
 
default = ${REMOTE_REPO}
 
default = ${REMOTE_REPO}
 +
</source>
 +
 +
==Authentication==
 +
{{warning|You didn't hear this from me... You should never use it (think SSH)}}
 +
If you're using HTTP to access a repository, you can add the following section to your <code>~/.hgrc</code> file:
 +
<source lang="ini">
 +
[auth]
 +
svr.prefix = http://my.server/
 +
svr.username = attie
 +
svr.password = supersecret
 
</source>
 
</source>

Revision as of 11:28, 30 July 2014

My Mercurial cheat sheet! See also: git and svn

Default Push

If you create a local repository, and later want to push it to a remote repo, then you'll need to setup the default-push target.
Put the following in your ./.hg/hgrc file:

[paths]
default = ${REMOTE_REPO}

Authentication

WARNING: You didn't hear this from me... You should never use it (think SSH)

If you're using HTTP to access a repository, you can add the following section to your ~/.hgrc file:

[auth]
svr.prefix = http://my.server/
svr.username = attie
svr.password = supersecret
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox