Added -n flag (newest first) to invocation of hg in, so that it gives us the most tip-ward revision that would be needed, not the oldest (revision 0 in almost all cases).
@echo off
setlocal
if not defined HELIUM_HOME set HELIUM_HOME=%~dp0..\..\..\..\helium
echo %HELIUM_HOME%
rem call ..\..\build\env.bat
call %HELIUM_HOME%\hlm.bat %*
endlocal