Mercurial pager with color support on Windows

Sunday, 16 May 2010 by alexandrul
Permalink

Tested with Mercurial 1.5.3, 1.5.4 and 1.6 on:

  • Windows XP Professional
  • Windows Server 2008 SP2 x86
  • Windows Server 2008 R2

Unfortunately, the pager extension is a little broken on Windows, as described in issue 1677 on Mercurial issue tracker, so I have modified it to use a temporary file for storing the commands output, and then call the pager with the temporary file as a command line parameter. You can find the source code on Bitbucket and CodePlex.

My favorite pager on Windows is less.exe, which works just fine with the ANSI codes generated from the Mercurial color extension:

[Read More…]

Install Hudson as a Windows service

Tuesday, 4 May 2010 by alexandrul
Permalink

Tested with Hudson 1.356 on:

  • Windows XP Professional
  • Windows Server 2008 SP2 x86
  • Windows Server 2008 R2

First, follow the Hudson wiki: Installing Hudson as a Windows service. The resulting service is named hudson, and is running under the Local system account.

Next, create a new local user named hudson-user (or any other name you like), which will be used in the next steps:

  • alter the hudson service properties to log on as hudson-user
  • grant Full control permissions for hudson-user on %HUDSON_HOME% folder

In order to be able to restart Hudson service from the web interface, SubInACL will be used to grant hudson-user the Start Service and Stop Service permission ACEs:

[Read More…]

TortoiseHg custom fonts

by alexandrul
Permalink

On a fresh install on my PC, TortoiseHg repository explorer looks like this:

tortoisehg-fresh-install.png

The fonts used on the blue regions can be changed as described on the TortoiseHg Frequently Asked Questions page:

[gtools]
# font used in changeset viewer and commit log text
fontcomment = Tahoma 8
# font used for diffs in status and commit tools
fontdiff = Courier New 10
# font used in file lists in status and commit tools
fontlist = Tahoma 8
# font used in command output window
fontlog = Courier New 10

However, the only way I could find to change the font used to display the revision ID is to alter the monospace alias in {TortoiseHg folder}\gtk\etc\pango\pango.aliases:

[Read More…]