Commit 9db33980 authored by fel9e's avatar fel9e

Always include revision 0

parent 6ef7e255
Pipeline #58258037 passed with stage
in 6 minutes and 43 seconds
......@@ -1056,6 +1056,7 @@ func strip(source DumpfileSource, selection SubversionRange, patterns []string)
// Topologically reduce a dump, removing spans of plain file modifications.
func doreduce(source DumpfileSource) {
interesting := make([]int, 0)
interesting = append(interesting, 0)
reducehook := func(header []byte, properties []byte, _ []byte) []byte {
if !(string(getHeader(header, "Node-kind")) == "file" && string(getHeader(header, "Node-action")) == "change") || len(properties) > 0 { //len([]nil == 0)
interesting = append(interesting, source.Revision-1, source.Revision, source.Revision+1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment