Commit Graph
27 Commits
Author SHA1 Message Date
Rafal Jeczalik 5a8438b920 remove spurious TODOs 2015-03-08 13:13:06 +01:00
Rafal Jeczalik 4d6f20e3f4 update license information
~ $ go get -u github.com/rjeczalik/tools/cmd/prepend
   ~ $ head -4 doc.go | prepend -u *.go
2015-02-26 15:07:48 +01:00
Rafal Jeczalik 7e3fce3fdd implement watching on newly created directories
Closes #5.
2015-02-26 13:32:16 +01:00
Rafal Jeczalik e2c2b67c35 rename Tree -> BigTree (#6) 2015-01-11 17:35:15 +01:00
Rafal Jeczalik b720090161 split tree traversal / building into Node and Root (#6)
First part of watchpoint tree refactoring. Currently Tree implements
strategies for setting both recursive and non-recursive watchpoints,
and logic for traversing and buidling tree.

The refactoring is about splitting tree traversing / building into Node
and Root structs, and implementing two separate trees - one for Watcher
and one for RecursiveWatcher.
2015-01-11 17:22:39 +01:00
Rafal Jeczalik bcd896bb39 potential deadlock fix 2015-01-04 00:53:15 +01:00
Rafal Jeczalik ce471699d7 tree: handle native recursive stop 2014-12-01 21:16:53 +01:00
Rafal Jeczalik 73375b8b10 tree: initial recursive Stop implementation 2014-11-30 23:47:02 +01:00
Rafal Jeczalik 628710a5a0 tree: rework edge-case for TestTreeStopRecursive[i=4]
Non-recursive watchpoint with bigger event set gets promoted to
recursive one by triggering RecursiveRewatch on it.
2014-11-30 23:05:06 +01:00
Rafal Jeczalik 43521e5403 tree: setup TestTreeStopRecursive; fix an edge-case for Watch 2014-11-29 20:48:25 +01:00
Rafal Jeczalik 99b274c9f5 tree: fix (*Tree).Stop test 2014-11-27 21:37:12 +01:00
Rafal Jeczalik bc8200c95e tree: add test-cases for Stop 2014-11-25 23:02:48 +01:00
Rafal Jeczalik 1226332d46 tree: fix creating too big watchpoints 2014-11-23 23:23:21 +01:00
Rafal Jeczalik 32d9bf0f82 remove debug prints 2014-11-23 21:15:01 +01:00
Rafal Jeczalik 453e8c1594 tree: always aim for smallest subtree for fake recursive watch 2014-11-23 21:11:17 +01:00
Rafal Jeczalik 973c7e2ddd tree: merge multiple recursive watchpoints into parent subtree 2014-11-23 19:35:43 +01:00
Rafal Jeczalik e463986b94 Move helper types and function to separate files
* types -> node.go
* functions -> util.go

+ spring cleaning
2014-11-23 11:56:23 +01:00
Rafal Jeczalik 3d7e333088 tree: Fix TestTreeRecursiveDir for natively recursive impl 2014-11-22 23:26:05 +01:00
Rafal Jeczalik 47c2100b4c Replace Runtime with Tree
+ spring cleaning
2014-11-22 21:42:38 +01:00
Rafal Jeczalik d8a61e11ef tree: implement RecursiveRewatch for non-recursive watchers (#5) 2014-11-22 19:13:40 +01:00
Rafal Jeczalik d35de90f48 tree: Implement recursive watching
IMPORTANT: Update github.com/rjeczalik/fs package.
2014-11-21 23:30:49 +01:00
Rafal Jeczalik 900fbed475 tree: fix for Del-miss 2014-11-21 21:29:46 +01:00
Rafal Jeczalik 94e3b8d5c6 tree: Implement dispatching events 2014-11-18 19:05:03 +01:00
Rafal Jeczalik 7dc3457aa1 tree: Implement Stop method 2014-11-17 22:39:46 +01:00
Rafal Jeczalik bce2642fe5 tree: Enable tests 2014-11-17 21:19:56 +01:00
Rafal Jeczalik ec0fe209ce Fix for TestWatchpoint 2014-11-16 17:52:51 +01:00
Rafal Jeczalik bb732e275e Most likely last rewrite for the Runtime
It's called Tree from now on, as it's just tree of Watchpoints.
2014-11-16 17:18:51 +01:00