monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone.colored-diff: 1410aeaf4d9595


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.colored-diff: 1410aeaf4d9595d53cad3d7056d263e03794b41b
Date: Tue, 12 Apr 2011 13:43:11 +0200 (CEST)

revision:            1410aeaf4d9595d53cad3d7056d263e03794b41b
date:                2011-04-12T11:42:18
author:              Richard Hopkins <address@hidden>
branch:              net.venge.monotone.colored-diff
changelog:
Added colorize option to CMD(asciik) which was missing previously

Some quick testing suggest that "mtn asciik" works with --colorize and
--no-colorize. The output looks correct, and is colorized correctly.

This is not currently the case for "mtn log --graph" which looks incorrect
regardless of colorization. I think this is to do with all output going
through colorizer, but the graph code needs the output buffered into a
string first. The colorization does occur though when requested.

eg. Current output of "mtn log --last 1 --graph" is

Standard revision header
..
..
End standard revision header

0
|
END OUTPUT

instead of

0 ------
| Standard revision header
| ..
| ..
| End standard revision header

END OUTPUT

manifest:
format_version "1"

new_manifest [f37b040af3bfb7e0e95979b3d309d2ea84178a00]

old_revision [d4b3cf9b667017fc7b9ce9fffe9b701e35f9acb3]

patch "src/asciik.cc"
 from [542aa7ee7cd8af6b9b41e7f9450d93f7412513c6]
   to [688ecdcf87cb50fa265a82bac6c90b6e02fc0ed6]
============================================================
--- src/asciik.cc	542aa7ee7cd8af6b9b41e7f9450d93f7412513c6
+++ src/asciik.cc	688ecdcf87cb50fa265a82bac6c90b6e02fc0ed6
@@ -376,7 +376,7 @@ CMD(asciik, "asciik", "", CMD_REF(debug)
 CMD(asciik, "asciik", "", CMD_REF(debug), N_("SELECTOR"),
     N_("Prints an ASCII representation of the revisions' graph"),
     "",
-    options::opts::none)
+    options::opts::colorize)
 {
   E(args.size() == 1, origin::user,
     F("wrong argument count"));

reply via email to

[Prev in Thread] Current Thread [Next in Thread]