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.log-with-certs: 694ed8ac92fe


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.log-with-certs: 694ed8ac92feff4643626d3c688f84425dba19a8
Date: Mon, 12 Sep 2011 11:16:32 +0200 (CEST)

revision:            694ed8ac92feff4643626d3c688f84425dba19a8
date:                2011-09-12T08:51:29
author:              Richard Hopkins <address@hidden>
branch:              net.venge.monotone.log-with-certs
changelog:
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 _(": ") ?

manifest:
format_version "1"

new_manifest [439e7b58fcc3977ac812cfe923fdc7f4ee014955]

old_revision [06738e14fae8309878e62cab9ea191be8fe891ce]

patch "src/rev_output.cc"
 from [a2c70b893b31296917d1a2b974faa1da46c13f1e]
   to [350efb77d30e01e91951b6a15751c7a294b8d851]
============================================================
--- 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)

reply via email to

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