(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 <BRANCH> <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'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 "TAGS" 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"><<a href="mailto:thomas@intevation.de">thomas@intevation.de</a>></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 <<a href="mailto:steve@borho.org">steve@borho.org</a>> [20100604 20:28]:<br>
<div><div></div><div class="h5">> On Fri, Jun 4, 2010 at 1:01 PM, Matt Mackall <<a href="mailto:mpm@selenic.com">mpm@selenic.com</a>> wrote:<br>
> > On Fri, 2010-06-04 at 16:41 +0100, Simon Howkins wrote:<br>
> >> # HG changeset patch<br>
> >> # User Simon Howkins <<a href="mailto:simonh@symbian.org">simonh@symbian.org</a>><br>
> >> # Date 1275642988 -3600<br>
> >> # Branch stable<br>
> >> # Node ID 6a39deac68b5a8bee88de5e18fc2a9f436be3fdf<br>
> >> # Parent d3ebb1a0bc49559e1e41d37f69c2afa06722563e<br>
> >> commands: New option for 'hg identify', to allow explicit output of long hash<br>
> ><br>
> > $ hg id -i --debug -r .<br>
> > 9f7ea411f54e1527008315861a8c04eac0748f6a<br>
><br>
> I think there's some general hesitation from using --debug in scripts<br>
> from fear the output format may be less stable than a normal command.<br>
><br>
> Though in this particular case, using log with a template is an<br>
> adequate workaround.<br>
<br>
</div></div>hg parents --template '{node}\n'<br>
<br>
would be the easiest, but in case of local changes you have to<br>
manually calculate the "+" 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.