[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone.log-with-certs: 485dbe5582f1
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone.log-with-certs: 485dbe5582f16e43a91d56590d402808d4837990 |
Date: |
Mon, 12 Sep 2011 20:47:08 +0200 (CEST) |
revision: 485dbe5582f16e43a91d56590d402808d4837990
date: 2011-09-12T18:46:33
author: Richard Hopkins <address@hidden>
branch: net.venge.monotone.log-with-certs
changelog:
Output all custom certs under "Other certs" heading
NOTE: "suspend" and "testresult" certs, which are special to monotone, will
currently appear in the "Other certs" section. These will later get
promoted to their own section with their own special formatting.
manifest:
format_version "1"
new_manifest [40677ccdf27326757db0bd225f9aa4bcf84d8885]
old_revision [694ed8ac92feff4643626d3c688f84425dba19a8]
patch "src/rev_output.cc"
from [350efb77d30e01e91951b6a15751c7a294b8d851]
to [6b9862bfda95d0d558d8335fb2accfc0180e8fbd]
============================================================
--- src/rev_output.cc 350efb77d30e01e91951b6a15751c7a294b8d851
+++ src/rev_output.cc 6b9862bfda95d0d558d8335fb2accfc0180e8fbd
@@ -98,11 +98,23 @@ revision_header(revision_id const rid, r
if (i->name == tag)
out << _("Tag: ") << i->value << '\n';
+ // Output "custom" certs if we have any, under a heading of "Other certs"
+ bool need_to_output_heading = true;
for (vector<cert>::const_iterator i = certs.begin(); i != certs.end(); ++i)
- if (i->name != author && i->name != branch && i->name != changelog &&
- i->name != comment && i->name != date && i->name != tag)
- out << i->name << ": " << i->value << '\n';
+ {
+ if (i->name != author && i->name != branch && i->name != changelog &&
+ i->name != comment && i->name != date && i->name != tag)
+ {
+ if (need_to_output_heading)
+ {
+ out << _("Other certs:") << '\n';
+ need_to_output_heading = false;
+ }
+ out << " " << i->name << ": " << i->value << '\n';
+ }
+ }
+
out << "\n";
for (vector<cert>::const_iterator i = certs.begin(); i != certs.end(); ++i)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone.log-with-certs: 485dbe5582f16e43a91d56590d402808d4837990,
code <=