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.flush-output-experiment: a1a


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.flush-output-experiment: a1a5d04967e65feaa20872c9dd0eefdb6f4f4c10
Date: Sun, 19 Feb 2012 23:37:05 +0100 (CET)

revision:            a1a5d04967e65feaa20872c9dd0eefdb6f4f4c10
date:                2012-02-19T22:36:58
author:              Richard Hopkins <address@hidden>
branch:              net.venge.monotone.flush-output-experiment
changelog:
Append extra newline to the output of "mtn au inventory"

Using "cmd.exe" on Windows XP SP3, "mtn au inventory" output (and some
other automate commands) is blank; linux systems are fine, and apparently
Windows 7 is as well.

Other automate commands run on Windows, such as "mtn au leaves" are fine. A
quick glance at the code shows that "leaves" outputs a separate '\n', which
may be causing the output to be flushed.

This is done here 1st as an experiment to see if it's the cause for missing
output on Windows, and if it is, then more revisions will follow for
remaining commands.

manifest:
format_version "1"

new_manifest [fb11815655925fddd37ef92cdc05ec2ea345ba55]

old_revision [872cbbe65c64dd0e036dca178ea2e62242cf126c]

patch "src/automate.cc"
 from [efa4ecceab7f1e31f71778f325da312bf6aefba5]
   to [f5a58b6720ba8cd0e9a42625babba59aad9b0859]
============================================================
--- src/automate.cc	efa4ecceab7f1e31f71778f325da312bf6aefba5
+++ src/automate.cc	f5a58b6720ba8cd0e9a42625babba59aad9b0859
@@ -1172,6 +1172,7 @@ CMD_AUTOMATE(inventory,  N_("[PATH]...")
     }
 
   output.write(pr.buf.data(), pr.buf.size());
+  output << '\n';
 }
 
 // Name: get_revision

reply via email to

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