hg -q log ... prints changeset number.

Matt Mackall mpm at selenic.com
Mon Apr 9 15:41:20 UTC 2012


On Mon, 2012-04-09 at 17:33 +0200, Masklinn wrote:
> On 2012-04-09, at 17:28 , Alan Mackenzie wrote:
> > Hi, Mercurial.
> > 
> > I'm using hg version 2.0.
> > 
> > When I do
> > 
> >    hg -q log -l1
> > 
> > , I get the following output:
> > 
> >    5266:1f52fac4deef
> > 
> > .  Surely I shouldn't see anything at all.
> 
> Surely there's no point to a command which doesn't display anything.
> 
> Considering the normal log, this looks plenty quiet to me.

In fact, lots of people use this feature daily, including myself.
Chances of this changing: nil.

But if, for some reason, your operating system doesn't have
a /dev/null-equivalent, you can do something like:

$ hg log -r "tag(foo) - all()"

..which will actually test if something's a tag.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list