[PATCH 2 of 2] graphlog: draw graphs in give order

Benoit Boissinot benoit.boissinot at ens-lyon.org
Sun Apr 4 18:43:35 CDT 2010


On Sun, Apr 04, 2010 at 11:39:53PM +0530, Vishakh wrote:
> # HG changeset patch
> # User Vishakh <vsh426 at gmail.com>
> # Date 1270404568 -19800
> # Node ID 4a7f1e4cb05f497e60d957e0fb73a3f4c351b70c
> # Parent  8f5646c4358358a4249273285793544f6e466443
> graphlog: draw graphs in give order
> 

Looking at the test output, it's not exactly nice.

> diff -r 8f5646c43583 -r 4a7f1e4cb05f tests/test-glog.out
> --- a/tests/test-glog.out	Sun Apr 04 23:30:24 2010 +0530
> +++ b/tests/test-glog.out	Sun Apr 04 23:39:28 2010 +0530
> @@ -307,6 +307,245 @@
>     date:        Thu Jan 01 00:00:00 1970 +0000
>     summary:     (0) root
>  
> +% reverse glog -r :
> +o                changeset:   0:e6eb3150255d
> +|\               user:        test
> +| |\             date:        Thu Jan 01 00:00:00 1970 +0000
> +| | |\           summary:     (0) root
> +| | | |\
> +| | | | |\
> +| | | | | |\
> +| | | | | | |\
> +o---+-+-+-+ | |            changeset:   1:6db2ef61d156
> +|\ \ \ \ \ \ \ \           user:        test
> +| |\ \ \ \ \ \ \ \         date:        Thu Jan 01 00:00:01 1970 +0000
> +| | |\ \ \ \ \ \ \ \       summary:     (1) collapse
> +| | | |\ \ \ \ \ \ \ \
> +| | | | |\ \ \ \ \ \ \ \
> +o---+ | | | | | | | | | |      changeset:   2:3d9a33b8d1e1
> +|\ \ \ \ \ \ \ \ \ \ \ \ \     user:        test
> +| |\ \ \ \ \ \ \ \ \ \ \ \ \   date:        Thu Jan 01 00:00:02 1970 +0000
> +| | | | | | | | | | | | | | |  summary:     (2) collapse

The edges above look really weird. Additionally, should the graph look
the same as the previous graph, but reversed? The graph above in the
test output looks much simpler.

Thanks,

Benoit
-- 
:wq


More information about the Mercurial-devel mailing list