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: 58ed8031aea2b7


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.colored-diff: 58ed8031aea2b70ea6e04c631afc9823e6ceafe2
Date: Wed, 13 Apr 2011 00:02:27 +0200 (CEST)

revision:            58ed8031aea2b70ea6e04c631afc9823e6ceafe2
date:                2011-04-12T21:21:07
author:              Richard Hopkins <address@hidden>
branch:              net.venge.monotone.colored-diff
changelog:
Fixed "mtn commit" not showing files in the interactive editor

The files were being shown on stdout instead. This commit just fixes "mtn
commit" to show the files in the interactive editor along with everything
else, but revision_summary will need refactoring as "summary" is no longer
used within it - all output goes through the colorizer.

manifest:
format_version "1"

new_manifest [b7d77cd259a7539d1051a7a03c753827738666b6]

old_revision [1410aeaf4d9595d53cad3d7056d263e03794b41b]

patch "src/cmd_ws_commit.cc"
 from [49428f1e66c32635cba685c13921f5904ed79d89]
   to [1dfba0b1f84506cd781e74448fe3b780e6fc5051]
============================================================
--- src/cmd_ws_commit.cc	49428f1e66c32635cba685c13921f5904ed79d89
+++ src/cmd_ws_commit.cc	1dfba0b1f84506cd781e74448fe3b780e6fc5051
@@ -259,8 +259,10 @@ get_log_message_interactively(lua_hooks 
   }
 
   utf8 summary;
-  colorizer color(false, lua, cout);
+  ostringstream oss;
+  colorizer color(false, lua, oss);
   revision_summary(rev, color, summary);
+  summary = utf8(oss.str().c_str());
 
   utf8 full_message(changelog() + cancel() + instructions() + editable() + ignored() +
                     notes() + summary(),

reply via email to

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