[PATCH 1 of 6 STABLE] log/graphlog: introduce --print-revset for debugging purposes

Matt Mackall mpm at selenic.com
Tue Feb 21 18:03:21 CST 2012


On Sat, 2012-02-18 at 20:57 +0100, Patrick Mezard wrote:
> # HG changeset patch
> # User Patrick Mezard <patrick at mezard.eu>
> # Date 1329594703 -3600
> # Branch stable
> # Node ID 5f0e7395d1135cb2fe60e16bc1a18fd4d8936ae2
> # Parent  0e0060bf2f440d5cc33e5f36d99868a5380debd4
> log/graphlog: introduce --print-revset for debugging purposes
> 
> Using "hg log -G --print-revset" prints the revset generated by graphlog and
> exits. This helps debugging and writing shorter tests.

As I mentioned on IRC, I don't think we should leak this sort of very
narrow-purpose developer feature into the wild.

For test suite purposes, we should probably be using a doctest. It's
well suited to testing things with simple inputs and outputs an no
stored state like this. Also, when it's appropriate, it's also an order
of magnitude or more faster per test-case.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list