# # patch "ChangeLog" # from [e591e7b1a3be1717139355c04e40404d5ba47362] # to [87bb23676e165e7ca2e9f9e714daf642649d0a24] # # patch "monotone.texi" # from [d74fa06e6d9c011ec816d6d1e479c7ff6e2c1d2b] # to [09ee3a4f65495e331edd108c1462e4681159b0e6] # # patch "std_hooks.lua" # from [6531b009dc93c30a5e470683a2d11ed2f3cfc52b] # to [89589561d3ab649c6505af849467566154b2769e] # ======================================================================== --- ChangeLog e591e7b1a3be1717139355c04e40404d5ba47362 +++ ChangeLog 87bb23676e165e7ca2e9f9e714daf642649d0a24 @@ -1,3 +1,10 @@ +2005-09-01 Timothy Brownawell + + * std_hooks.lua: support .mt-ignore + * monotone.texi: mention .mt-ignore and MT/wanted-testresults under + "Existing control files" + * .mt-ignore: ignore testsuite.dir + 2005-09-01 Matthew Gregan * commands.cc (ALIAS(import, setup)): Remove alias. ======================================================================== --- monotone.texi d74fa06e6d9c011ec816d6d1e479c7ff6e2c1d2b +++ monotone.texi 09ee3a4f65495e331edd108c1462e4681159b0e6 @@ -2715,6 +2715,13 @@ @item .mt-attrs Contains versioned attributes of files, associated with the files' pathnames. address@hidden .mt-ignore +Contains a list of patterns, one per line. If it exists, any file with a name +matching one of these patterns is ignored. address@hidden MT/wanted-testresults +Contains a list of testresult key names, one per line. If it exists, update +will only select revisions that do not have regressions according to the given +testresult keys. @item MT/revision Contains the identity of the ``base'' revision of the working copy. Each working copy has a base revision. When the working copy is ======================================================================== --- std_hooks.lua 6531b009dc93c30a5e470683a2d11ed2f3cfc52b +++ std_hooks.lua 89589561d3ab649c6505af849467566154b2769e @@ -72,6 +72,17 @@ function ignore_file(name) + -- project specific + local ignfile = io.open(".mt-ignore", "r") + if (ignfile ~= nil) then + local line = ignfile:read() + while (line ~= nil) + do + if (string.find(name, line)) then return true end + line = ignfile:read() + end + io.close(ignfile) + end -- c/c++ if (string.find(name, "%.a$")) then return true end if (string.find(name, "%.so$")) then return true end