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: 3b418d91f172f8aa77a10e75fa9


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone: 3b418d91f172f8aa77a10e75fa9f2b9ff96601a8
Date: Thu, 28 Jun 2012 13:01:58 +0200 (CEST)

revision:            3b418d91f172f8aa77a10e75fa9f2b9ff96601a8
date:                2012-06-28T10:44:04
author:              address@hidden
branch:              net.venge.monotone
changelog:
clean up doc of trust hooks.

* doc/monotone.texi (Quality Assurance): delete mention of hooks 
get_manifest_cert_trust, get_file_cert_trust; no longer used.

* src/std_hooks.lua: doc that get_manifest_cert_trust is only used during 
migration from an old db.

manifest:
format_version "1"

new_manifest [7feeeb737476fe873cfa305233eaf242ce8056cb]

old_revision [495e346cbb78df42c94b72c95bf62174b32e84cf]

patch "doc/monotone.texi"
 from [41082cc1abba4942eb22374a13ad30fbe5042a67]
   to [0cfcb33243cfe1c8fdaa458366c846ce50e100a1]

patch "src/std_hooks.lua"
 from [ada658bd275399032411e0f520d9900bad966dc4]
   to [a7dccd332679e3669d0c02e90922692277ba06e3]
============================================================
--- doc/monotone.texi	41082cc1abba4942eb22374a13ad30fbe5042a67
+++ doc/monotone.texi	0cfcb33243cfe1c8fdaa458366c846ce50e100a1
@@ -3758,14 +3758,13 @@ @section Quality Assurance
 test, or testsuite.
 @end itemize
 
-The evaluation of trust is done on a cert-by-cert basis by calling a
-set of Lua hooks: @ref{get_revision_cert_trust},
address@hidden, and @ref{get_file_cert_trust}.  These
-hooks are only called when a cert has at least one good signature from
-a known key, and are passed @emph{all} the keys which have signed the
-cert, as well as the cert's ID, name and value. The hook can then
-evaluate the set of signers, as a group, and decide whether to grant
-or deny trust to the assertion made by the cert.
+The evaluation of trust is done on a cert-by-cert basis by calling the
+Lua hook @ref{get_revision_cert_trust}.  This hook is only called
+when a cert has at least one good signature from a known key, and are
+passed @emph{all} the keys which have signed the cert, as well as the
+cert's ID, name and value. The hook can then evaluate the set of
+signers, as a group, and decide whether to grant or deny trust to the
+assertion made by the cert.
 
 The evaluation of testresults is controlled by the
 @code{accept_testresult_change} hook (see @ref{accept_testresult_change}).
@@ -12177,12 +12176,6 @@ @subsection Trust Evaluation Hooks
 the revision has been approved by an extra ``reviewer'' who used the
 @command{approve} command.
 
address@hidden@item get_file_cert_trust (@var{signers}, @var{id}, @var{name}, @var{val})
-Similar to @address@hidden, for certs on files.
-
address@hidden@item get_manifest_cert_trust (@var{signers}, @var{id}, @var{name}, @var{val})
-Similar to @address@hidden, for certs on manifests.
-
 @address@hidden accept_testresult_change (@var{old_results}, @var{new_results})
 Called by @address@hidden update}}.
 
============================================================
--- src/std_hooks.lua	ada658bd275399032411e0f520d9900bad966dc4
+++ src/std_hooks.lua	a7dccd332679e3669d0c02e90922692277ba06e3
@@ -408,14 +408,11 @@ end
    return true
 end
 
+-- This is only used by migration from old manifest-style ancestry
 function get_manifest_cert_trust(signers, id, name, val)
    return true
 end
 
-function get_file_cert_trust(signers, id, name, val)
-   return true
-end
-
 function accept_testresult_change(old_results, new_results)
    local reqfile = io.open("_MTN/wanted-testresults", "r")
    if (reqfile == nil) then return true end

reply via email to

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