(Thanks for all the speedy feedback.)<br><br>The use case is related to hg id by wanting to run<br><br>hg id -I -r &lt;BRANCH&gt; <a href="http://blah.com/repo">http://blah.com/repo</a><br><br>--debug adds unhelpful debugging of the http connection<br>
hg log won&#39;t work on a remote repo<br>hg parents also<br><br>The overall use case is scripting to tag a release on a dedicated &quot;TAGS&quot; branch, rather than the default branch; but without having to pull all the code into a local repository. Find the long hash, and make the update to the .hgtags file directly.<br>
<br>Another way to do it would be with<br><br>hg tag -r 123456789012345678901234567890234567890 --just-do-it-even-if-you-cant-find-that-node-in-this-repo<br><br>But the extension to hg id seemed a more reasonable approach.<br>
<br>Simon<br clear="all">-- <br>Simon Howkins<br>Integration<br>Symbian Foundation<br>London<br>+44 (0) 7763 102 896<br>
<br><br><div class="gmail_quote">On 4 June 2010 20:19, Thomas Arendsen Hein <span dir="ltr">&lt;<a href="mailto:thomas@intevation.de">thomas@intevation.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
* Steve Borho &lt;<a href="mailto:steve@borho.org">steve@borho.org</a>&gt; [20100604 20:28]:<br>
<div><div></div><div class="h5">&gt; On Fri, Jun 4, 2010 at 1:01 PM, Matt Mackall &lt;<a href="mailto:mpm@selenic.com">mpm@selenic.com</a>&gt; wrote:<br>
&gt; &gt; On Fri, 2010-06-04 at 16:41 +0100, Simon Howkins wrote:<br>
&gt; &gt;&gt; # HG changeset patch<br>
&gt; &gt;&gt; # User Simon Howkins &lt;<a href="mailto:simonh@symbian.org">simonh@symbian.org</a>&gt;<br>
&gt; &gt;&gt; # Date 1275642988 -3600<br>
&gt; &gt;&gt; # Branch stable<br>
&gt; &gt;&gt; # Node ID 6a39deac68b5a8bee88de5e18fc2a9f436be3fdf<br>
&gt; &gt;&gt; # Parent  d3ebb1a0bc49559e1e41d37f69c2afa06722563e<br>
&gt; &gt;&gt; commands: New option for &#39;hg identify&#39;, to allow explicit output of long hash<br>
&gt; &gt;<br>
&gt; &gt; $ hg id -i --debug -r .<br>
&gt; &gt; 9f7ea411f54e1527008315861a8c04eac0748f6a<br>
&gt;<br>
&gt; I think there&#39;s some general hesitation from using --debug in scripts<br>
&gt; from fear the output format may be less stable than a normal command.<br>
&gt;<br>
&gt; Though in this particular case, using log with a template is an<br>
&gt; adequate workaround.<br>
<br>
</div></div>hg parents --template &#39;{node}\n&#39;<br>
<br>
would be the easiest, but in case of local changes you have to<br>
manually calculate the &quot;+&quot; or in case of merges above line will<br>
print two lines instead of one.<br>
<br>
Simon, what is the use case of getting a long hash here?<br>
<br>
Regards,<br>
Thomas<br>
<font color="#888888"><br>
--<br>
<a href="mailto:thomas@intevation.de">thomas@intevation.de</a> - <a href="http://intevation.de/%7Ethomas/" target="_blank">http://intevation.de/~thomas/</a> - OpenPGP key: 0x5816791A<br>
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998<br>
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner<br>
</font></blockquote></div><br>

<pre>
Some facts about Symbian that we are legally obliged to tell you: 
Symbian Foundation Limited is a Company Limited by Guarantee and not having Share Capital
We're registered in England and Wales - Companies House knows us by the number 6683783
Our address is 1 Boundary Row, Southwark, London SE1 8HP.