<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>delx &#187; mercurial</title>
	<atom:link href="http://delx.net.au/blog/tag/mercurial/feed/" rel="self" type="application/rss+xml" />
	<link>http://delx.net.au/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 01 Jul 2010 11:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mercurial remote repository names</title>
		<link>http://delx.net.au/blog/2009/02/mercurial-remote-repository-names/</link>
		<comments>http://delx.net.au/blog/2009/02/mercurial-remote-repository-names/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 08:39:09 +0000</pubDate>
		<dc:creator>delx</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://delx.net.au/blog/?p=120</guid>
		<description><![CDATA[I just discovered that Mercurial supports named shortcuts for repositories. This is great for when you want to be pushing and pulling from several repository URLs without typing their full locations. I was aware you could set a default and default-push repository in .hg/hgrc, in fact whenever you clone a repository a default remote path [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered that Mercurial supports named shortcuts for repositories. This is great for when you want to be pushing and pulling from several repository URLs without typing their full locations.</p>
<p><span id="more-120"></span></p>
<p>I was aware you could set a default and default-push repository in <tt>.hg/hgrc</tt>, in fact whenever you clone a repository a default remote path is created for you.</p>
<p>You can actually put arbitrary names in there. For example, I have a repository &#8220;chatbots&#8221; that I cloned from Katie&#8217;s repository: <tt>http://katharos.id.au/hg/chatbots"</tt>. I want to be able to push and pull changes from my repository as well as pull from her&#8217;s without typing the full path out at any time.</p>
<p><code><br />
[paths]<br />
default = ssh://hg@delx.net.au/chatbots<br />
katie = http://katharos.id.au/hg/chatbots<br />
</code></p>
<p>The above snippet goes in the repositories <tt>.hg/hgrc</tt>, and I can now run commands like this:<br />
<code><br />
$ hg pull katie<br />
$ hg push<br />
</code><br />
This pulls any new changes in from Katie&#8217;s repository and pushes them to the default, mine.</p>
]]></content:encoded>
			<wfw:commentRss>http://delx.net.au/blog/2009/02/mercurial-remote-repository-names/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
