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.issue-120: d42d3657a158d332


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.issue-120: d42d3657a158d332571228735064c5fef7e03bbe
Date: Sun, 20 Feb 2011 03:26:58 +0100 (CET)

revision:            d42d3657a158d332571228735064c5fef7e03bbe
date:                2011-02-20T00:47:49
author:              Richard Hopkins <address@hidden>
branch:              net.venge.monotone.issue-120
changelog:
Use copy(...) to output file_path's to cout

This was based from CMD(ignored and CMD(missing and is much more readable than
the old implementation.

As the copy(...) to cout exists in other places, such as CMD(missing I assume
it's fine and the old call to utf8_to_system_best_effort was not needed.

manifest:
format_version "1"

new_manifest [175a167534d2ab032747019a9c1a346880d22d09]

old_revision [1efcb4d0d14187c8e546733cfa3beed40ce46922]

patch "src/cmd_list.cc"
 from [bc8b54c5c2bedba9de21d60e7472dd365882e00a]
   to [042cb24c88d1bbfd70cc57b5f054b5d51adb3de3]
============================================================
--- src/cmd_list.cc	bc8b54c5c2bedba9de21d60e7472dd365882e00a
+++ src/cmd_list.cc	042cb24c88d1bbfd70cc57b5f054b5d51adb3de3
@@ -946,19 +946,8 @@ CMD(changed, "changed", "", CMD_REF(list
         }
     }
 
-  for (set<file_path>::const_iterator i = output_files.begin();
-       i != output_files.end(); ++i)
-    {
-      ostringstream tmp;
-      external summary_external;
-
-      tmp << *i;
-      utf8 summary = utf8(tmp.str(), origin::internal);
-
-      utf8_to_system_best_effort(summary, summary_external);
-
-      cout << summary_external << "\n";
-    }
+  copy(output_files.begin(), output_files.end(),
+       ostream_iterator<file_path>(cout, "\n"));
 }
 
 namespace

reply via email to

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