Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 2 and Version 3 of MonotoneRcSnippets


Ignore:
Timestamp:
Jan 9, 2010, 3:01:53 AM (14 years ago)
Author:
QuLogic
Comment:

Fix author in revision log

Legend:

Unmodified
Added
Removed
Modified
  • MonotoneRcSnippets

    v2 v3  
    1212    Pluck a revision with the log and authors filled in for the next commit log.
    1313
    14     @author: Sadrul Habib Chowdhury (updated for mtn 0.43 by John Bailey and for mtn 0.45 by Daniel Atallah)
     14    @author: Sadrul Habib Chowdhury (updated for mtn 0.43 by John Bailey and for mtn 0.45 by Daniel Atallah and Elliott Sales de Andrade)
    1515--]]
    1616
     
    4242
    4343            for rev in sel:gmatch("%S+") do
     44                local author,changelog
    4445                r, certs = mtn_automate("certs", rev)
    4546
     
    4748                        function(key, sig, name, value, trust)
    4849                            if name == "changelog" then
    49                                 log = log .. "*** Plucked rev " .. rev .. " (" .. key .. "):\n" .. value .. "\n"
     50                                changelog = value
     51                            elseif name == "author" then
     52                                author = value
    5053                            end
    5154                        end
    5255                    )
     56                log = log .. "*** Plucked rev " .. rev .. " (" .. author .. "):\n" .. changelog .. "\n"
    5357                execute("mtn", "pluck", "-r", rev)
    5458            end
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!