<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>mercurial on Oxymoronical</title>
    <link>https://www.oxymoronical.com/blog/tag/mercurial/</link>
    <description>Recent content in mercurial on Oxymoronical</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 06 Sep 2022 17:33:53 +0000</lastBuildDate>
    <atom:link href="https://www.oxymoronical.com/blog/tag/mercurial/feed/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using VS Code for merges in Mercurial</title>
      <link>https://www.oxymoronical.com/blog/2022/09/using-vs-code-for-merges-in-mercurial/</link>
      <pubDate>Tue, 06 Sep 2022 17:33:53 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2022/09/using-vs-code-for-merges-in-mercurial/</guid>
      <description>&lt;p&gt;I’ve always struggled to find a graphical merge tool that I can actually understand and up until now I have just been using merge markers along with a handy Mercurial command to open all conflicted files in VS Code, my editor of preference.&lt;/p&gt;&#xA;&lt;p&gt;Well it turns out that since version 1.69 VS Code now has built in support for acting as a merge tool and after trying it out I actually found it to be useful! Given that they (and the rest of the world) tend to focus on Git I couldn’t find explicit instructions for setting it up for Mercurial so here is how you do it. Add the following to your &lt;code&gt;~/.hgrc&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>A simple command to open all files with merge conflicts</title>
      <link>https://www.oxymoronical.com/blog/2019/10/a-simple-command-to-open-all-files-with-merge-conflicts/</link>
      <pubDate>Wed, 09 Oct 2019 10:28:19 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2019/10/a-simple-command-to-open-all-files-with-merge-conflicts/</guid>
      <description>&lt;p&gt;When I get merge conflicts in a rebase I found it irritating to open up the problem files in my editor, I couldn’t find anything past copying and pasting the file path or locating it in the source tree. So I wrote a simple &lt;code&gt;hg&lt;/code&gt; command to open all the unresolved files into my editor. Maybe this is useful to you too?&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[alias]&#xA;unresolved = !$HG resolve -l &amp;#34;set:unresolved()&amp;#34; -T &amp;#34;{reporoot}/{path}\0&amp;#34; | xargs -0 $EDITOR&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>hgchanges is down, probably for good</title>
      <link>https://www.oxymoronical.com/blog/2017/02/hgchanges-is-down-probably-for-good/</link>
      <pubDate>Mon, 06 Feb 2017 14:01:35 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2017/02/hgchanges-is-down-probably-for-good/</guid>
      <description>&lt;p&gt;My little tool to help folks track when changes are made to files or directories in Mozilla’s mercurial repositories has gone down again. This time an influx of some 8000 changesets from the servo project are causing the script that does the updating to fail so I’ve turned off updating. I no longer have any time to work on this tool so I’ve also taken it offline and don’t really have any intention to bring it back up again. Sorry to the few people that this inconveniences. Please go lobby the engineering productivity folks if you still need a tool like this.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linting for Mozilla JavaScript code</title>
      <link>https://www.oxymoronical.com/blog/2015/12/Linting-for-Mozilla-JavaScript-code/</link>
      <pubDate>Fri, 18 Dec 2015 11:27:07 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2015/12/Linting-for-Mozilla-JavaScript-code/</guid>
      <description>&lt;p&gt;One of the projects I’ve been really excited about recently is getting ESLint working for a lot of our JavaScript code. If you haven’t come across ESLint or linters in general before they are automated tools that scan your code and warn you about syntax errors. They can usually also be set up with a set of rules to enforce code styles and warn about potential bad practices. The devtools and Hello folks have been using eslint for a while already and Gijs asked why we weren’t doing this more generally. This struck a chord with me and a few others and so we’ve been spending some time over the past few weeks getting our in-tree support for ESLint to work more generally and fixing issues with browser and toolkit JavaScript code in particular to make them lintable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Running ESLint on commit</title>
      <link>https://www.oxymoronical.com/blog/2015/12/Running-ESLint-on-commit/</link>
      <pubDate>Fri, 18 Dec 2015 11:24:23 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2015/12/Running-ESLint-on-commit/</guid>
      <description>&lt;p&gt;ESLint becomes the most useful when you get warnings before even trying to land or get your code reviewed. You can add support to your code editor but not all editors support this so I’ve written a mercurial extension which gives you warnings any time you commit code that fails lint checks. It uses the same rules we run elsewhere. It doesn’t abort the commit, that would be annoying if you’re working on a feature branch but gives you a heads up about what needs to be fixed and where.&lt;/p&gt;</description>
    </item>
    <item>
      <title>hgchanges is back up</title>
      <link>https://www.oxymoronical.com/blog/2015/01/hgchanges-is-be-back-up/</link>
      <pubDate>Thu, 29 Jan 2015 10:33:05 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2015/01/hgchanges-is-be-back-up/</guid>
      <description>&lt;p&gt;The offending changeset that broke &lt;a href=&#34;https://www.oxymoronical.com/blog/2015/01/hgchanges-is-down-for-now&#34;&gt;hgchanges yesterday &lt;/a&gt;turns out to be a merge from an ancient branch to current tip. That makes the diff insanely huge which is why things like hgweb were tripping over it. Kwierso point out that just ignoring those changesets would solve the problem. It’s not ideal but since in this case they aren’t useful changesets I’ve gone ahead and done that and so hgchanges is now updating again.&lt;/p&gt;</description>
    </item>
    <item>
      <title>hgchanges is down for now</title>
      <link>https://www.oxymoronical.com/blog/2015/01/hgchanges-is-down-for-now/</link>
      <pubDate>Wed, 28 Jan 2015 21:23:31 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2015/01/hgchanges-is-down-for-now/</guid>
      <description>&lt;p&gt;My &lt;a href=&#34;http://hgchanges.fractalbrew.com/&#34;&gt;handy tool&lt;/a&gt; for tracking changes to directories in the mozilla mercurial repositories is going to be broken for a little while. Unfortunately a &lt;a href=&#34;https://hg.mozilla.org/mozilla-central/rev/8991b10184de994b6ba38edd81a73856c8c3d595&#34;&gt;particular changeset&lt;/a&gt; seems to be breaking things in ways I don’t have the time to fix right now. Specifically trying to download the &lt;a href=&#34;https://hg.mozilla.org/mozilla-central/raw-rev/4f2a8114211d:8991b10184de&#34;&gt;raw patch&lt;/a&gt; for the changeset is causing hgweb to timeout. Short of finding time to debug and fix the problem my only solution is to wait until that patch is old enough that it no longer attempts to index it. That could take a week or so.&lt;/p&gt;</description>
    </item>
    <item>
      <title>An update for hgchanges</title>
      <link>https://www.oxymoronical.com/blog/2014/03/An-update-for-hgchanges/</link>
      <pubDate>Thu, 13 Mar 2014 15:47:18 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2014/03/An-update-for-hgchanges/</guid>
      <description>&lt;p&gt;Nearly a year ago I showed off the first version of my webapp for displaying &lt;a href=&#34;https://www.oxymoronical.com/blog/2013/04/Get-notifications-about-changes-to-any-directory-in-mercurial&#34;&gt;recent changes in mercurial repositories&lt;/a&gt;. I’ve heard directly from a number of people that use it but it’s had a few problems that I’ve spent some of my spare time trying to solve. I’m now pleased to say that a new version is up and running. I’m not sure it’s accurate to call this a rewrite since it was entirely incremental but when I look back over of the code changes there really isn’t much that wasn’t touched in some way or other. So what’s new? For you, a person using the site absolutely nothing! So what on earth have I been doing rewriting the code?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Get notifications about changes to any directory in mercurial</title>
      <link>https://www.oxymoronical.com/blog/2013/04/Get-notifications-about-changes-to-any-directory-in-mercurial/</link>
      <pubDate>Fri, 05 Apr 2013 14:36:32 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2013/04/Get-notifications-about-changes-to-any-directory-in-mercurial/</guid>
      <description>&lt;p&gt;Back in the old days when we used CVS of all things for our version control we had a wonderful tool called &lt;a href=&#34;http://bonsai.mozilla.org/&#34;&gt;bonsai&lt;/a&gt; to help query the repository for changes. You could list changes on a per directory basis if you needed which was great for keeping an eye on certain chunks of code. I recall there being a way of getting an RSS feed from it and I used it when I was the module owner of the extension manager to see what changes were landed that I hadn’t noticed in bugs.&lt;/p&gt;</description>
    </item>
    <item>
      <title>WebApp Tabs, version control and GitHub</title>
      <link>https://www.oxymoronical.com/blog/2011/11/WebApp-Tabs-version-control-and-GitHub/</link>
      <pubDate>Mon, 07 Nov 2011 00:59:28 +0000</pubDate>
      <guid>https://www.oxymoronical.com/blog/2011/11/WebApp-Tabs-version-control-and-GitHub/</guid>
      <description>&lt;p&gt;The extension I’ve been working on in my spare time for the past couple of weeks is now available as a first (hopefully not too buggy) release. It lets you open WebApps in Thunderbird, properly handling loading new links into Firefox and making all features like spellchecking work in Thunderbird (most other extensions I found didn’t do this). You can read more about the actual extension at its &lt;a href=&#34;http://www.fractalbrew.com/labs/webapp-tabs/&#34; title=&#34;WebApp Tabs for Thunderbird&#34;&gt;homepage&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
