[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone.log-with-certs: 694ed8ac92fe
[Monotone-commits-diffs] net.venge.monotone.log-with-certs: 694ed8ac92feff4643626d3c688f84425dba19a8
Mon, 12 Sep 2011 11:16:32 +0200 (CEST)
author: Richard Hopkins <address@hidden>
Print all certs as part of the revision header for "mtn log"
All the certs will be printed after the standard header of Author, Date,
Branch and before the Changelog and Comments.
Although "suspend" is a builtin cert acknowledged by monotone, currently
it will appear as part of the custom certs. Perhaps we could treat it like the
other builtin certs and provide formatting for it to as"Suspend:<spaces>"
like the others.
The custom certs only provide ": " as the separator and no extra spaces
because we don't know how long each cert name is, and it doesn't seem
worth calculating how much space would be needed to align them all.
NOTE: Should the ": " be in the translation files and ouput with _(": ") ?
--- src/rev_output.cc a2c70b893b31296917d1a2b974faa1da46c13f1e
+++ src/rev_output.cc 350efb77d30e01e91951b6a15751c7a294b8d851
@@ -98,6 +98,11 @@ revision_header(revision_id const rid, r
if (i->name == tag)
out << _("Tag: ") << i->value << '\n';
+ 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';
out << "\n";
for (vector<cert>::const_iterator i = certs.begin(); i != certs.end(); ++i)
|[Prev in Thread]
||[Next in Thread]|
- [Monotone-commits-diffs] net.venge.monotone.log-with-certs: 694ed8ac92feff4643626d3c688f84425dba19a8,