<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>mercurial &amp;mdash; alan</title>
    <link>https://www.franzoni.eu/alan/tag:mercurial</link>
    <description>Alan&#39;s musings</description>
    <language>en</language>
    <pubDate>Tue, 17 Nov 2026 00:52:53 +0000</pubDate>
    <item>
      <title>Dropbox and Mercurial: and lived happily ever after</title>
      <link>https://www.franzoni.eu/alan/dropbox-and-mercurial-and-lived-happily-ever-after</link>
      <description>&lt;![CDATA[Some days ago I ranted about an issue I had with Mercurial and Dropbox; basically, I did put a mercurial repo in a dropbox folder, and ended up with this kind of mess&#xA;&#xA;Mercurial repos inside Dropbox are not a great idea after all. But I had one problem: I sometimes forget to push changes to some files, and Dropbox comes to the rescue; at the same time I need history for such files, and I don&#39;t want problems to arise.&#xA;&#xA;I found quite an easy solution:&#xA;&#xA;Create your dropbox-aware folder, e.g. &#34;somefolder&#34;&#xA;create a .hg folder inside it, e.g. &#34;somefolder/.hg&#34;&#xA;now use your dropbox client, be it the CLI or the GUI, enable Selective Sync and remove such .hg folder from being synced on your current machine. You must take this step on all machines that you want to use with such technique.&#xA;disabling sync for .hg should remove it from the somefolder directory.&#xA;&#xA;Now you can use hg init inside &#34;somefolder&#34;, and you&#39;ll obtain a non-synced hg repository.&#xA;&#xA;What for? Whatever! I just create a repo on bitbucket and push/pull changes to/from here.&#xA;&#xA;On other machines, after making sure you&#39;ve excluded .hg from syncing, you can just use&#xA;&#xA;hg clone -U YOURREPOURL&#xA;&#xA;to obtain such .hg directory.&#xA;&#xA;This way:&#xA;&#xA;it&#39;s impossible to get errors or conflicts like the one I previously mentioned&#xA;you get full storicization&#xA;Dropbox syncs the actual working copy, letting you have the latest version always 100% synced without manual intervention.&#xA;&#xA;Enjoy!&#xA;&#xA;#MostlyUnixish #dropbox #mercurial #productivity&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Some days ago I ranted about an issue I had with Mercurial and Dropbox; basically, I did put a mercurial repo in a dropbox folder, and ended up with <a href="http://twitter.com/franzeur/statuses/214769401055035392/" rel="nofollow">this kind of mess</a></p>

<p>Mercurial repos inside Dropbox are not a great idea after all. But I had one problem: I sometimes forget to push changes to some files, and Dropbox comes to the rescue; at the same time I need history for such files, and I don&#39;t want problems to arise.</p>

<p>I found quite an easy solution:</p>
<ul><li>Create your dropbox-aware folder, e.g. “somefolder”</li>
<li>create a .hg folder inside it, e.g. “somefolder/.hg”</li>
<li>now use your dropbox client, be it the CLI or the GUI, enable <a href="https://www.dropbox.com/help/175/en" rel="nofollow">Selective Sync</a> and remove such .hg folder from being synced on your current machine. You must take this step on all machines that you want to use with such technique.</li>
<li>disabling sync for .hg should remove it from the somefolder directory.</li></ul>

<p>Now you can use <code>hg init</code> inside “somefolder”, and you&#39;ll obtain a non-synced hg repository.</p>

<p>What for? Whatever! I just create a repo on bitbucket and push/pull changes to/from here.</p>

<p>On other machines, after making sure you&#39;ve excluded .hg from syncing, you can just use</p>

<p><code>hg clone -U YOUR_REPO_URL</code></p>

<p>to obtain such .hg directory.</p>

<p>This way:</p>
<ul><li>it&#39;s impossible to get errors or conflicts like the one I previously mentioned</li>
<li>you get full storicization</li>
<li>Dropbox syncs the actual working copy, letting you have the latest version always 100% synced without manual intervention.</li></ul>

<p>Enjoy!</p>

<p><a href="/alan/tag:MostlyUnixish" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">MostlyUnixish</span></a> <a href="/alan/tag:dropbox" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">dropbox</span></a> <a href="/alan/tag:mercurial" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">mercurial</span></a> <a href="/alan/tag:productivity" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">productivity</span></a></p>
]]></content:encoded>
      <guid>https://www.franzoni.eu/alan/dropbox-and-mercurial-and-lived-happily-ever-after</guid>
      <pubDate>Thu, 21 Jun 2012 20:42:00 +0000</pubDate>
    </item>
  </channel>
</rss>