Check-in [3861ae4c57]
Overview
SHA1:3861ae4c575d3bbac6c53dd476191574ed73154d
Date: 2015-01-26 21:32:47
User: spaskalev
Comment:Added missing depends interation in the collecting handler
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2015-01-26
23:02
[bca8ee3e12] full dep traversal in the collecting handler (user: spaskalev, tags: trunk)
21:32
[3861ae4c57] Added missing depends interation in the collecting handler (user: spaskalev, tags: trunk)
20:40
[96db071674] Added tbd.slide as well (user: spaskalev, tags: trunk)
Changes

Modified src/0dev.org/commands/tbd/tbd.go from [2085cbcbc6] to [00e85b5d82].

   219    219   }
   220    220   
   221    221   // Returns a handler that stores every seen task and an ancillary function to retrieve those
   222    222   func collecting() (handler, func() tasks) {
   223    223   	var seen = make(map[*task]struct{})
   224    224   	return func(t *task) action {
   225    225   			seen[t] = struct{}{}
          226  +			for _, dep := range t.depends {
          227  +				seen[dep] = struct{}{}
          228  +			}
   226    229   			return action{}
   227    230   		}, func() tasks {
   228    231   			seq := make(tasks, 0, len(seen))
   229    232   			for k, _ := range seen {
   230    233   				seq = append(seq, k)
   231    234   			}
   232    235   			sort.Stable(seq)
   233    236   			return seq
   234    237   		}
   235    238   }