<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Great, thanks. I'm on Windows so the&nbsp;nested command doesn't work (I guess that's a Linux scripting feature?). I bodged it like this:<BR>
&nbsp;<BR>
hg heads -r . --template "@hg up {node}\r\n" &gt; _updatetemp.cmd<BR>call .\_updatetemp.cmd<BR>del _updatetemp.cmd<BR><BR>
Which seems to work great!<BR>
<BR>&nbsp;<BR>&gt; Not an easy way, no. But the following command will show you heads<BR>&gt; descended from the current revision:<BR>&gt; <BR>&gt; hg heads -r .<BR>&gt; <BR>&gt; So you can do:<BR>&gt; <BR>&gt; hg up `hg heads -r . --template "{node}\n"`<BR>&gt; <BR>&gt; But if you have more than one such head, hg up will barf.<BR>                                               </body>
</html>