<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 nested command doesn't work (I guess that's a Linux scripting feature?). I bodged it like this:<BR>
<BR>
hg heads -r . --template "@hg up {node}\r\n" > _updatetemp.cmd<BR>call .\_updatetemp.cmd<BR>del _updatetemp.cmd<BR><BR>
Which seems to work great!<BR>
<BR> <BR>> Not an easy way, no. But the following command will show you heads<BR>> descended from the current revision:<BR>> <BR>> hg heads -r .<BR>> <BR>> So you can do:<BR>> <BR>> hg up `hg heads -r . --template "{node}\n"`<BR>> <BR>> But if you have more than one such head, hg up will barf.<BR>                                            </body>
</html>