.svn catalogs makes pending = 1 where it should be 0

Here is a dump from running couchapp without watch patched:

The "sys" module is now called "util". It should have a similar interface.
Preparing.
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments pending 1 
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments pending 20
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 20
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 19
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 18
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 17
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 16
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 15
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 14
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 13
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 12
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 11
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 10
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 9
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 9
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 8
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 6
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 4
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 4 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 4 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 4 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 4 
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 7
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 9
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 16
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 53
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 52
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 51
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 50
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 48
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 47
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 45
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 44
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 43
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 42
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 41
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 40
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 38
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 38
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 37
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 37
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 36
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 35
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 34
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 33
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 33
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 32
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 31
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 30
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 29
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 28
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 28
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 27
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 26
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 25
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 24
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 23
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 23
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 22
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 21
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 21
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 20
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 20
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 19
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 18
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 17
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 17
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 17
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 16
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 15
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 14
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 13
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 12
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 10
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 9
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/geolocation pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/form pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/user pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/chat pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/grid pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/selection pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/vesselgallery pending 9 
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/geolocation pending 10
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/form pending 11
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/user pending 12
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/chat pending 13
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/grid pending 14
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 16
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 18
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/selection pending 19
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/vesselgallery pending 20
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/geolocation pending 19
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/form pending 16
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/user pending 15
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/chat pending 13
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/grid pending 11
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 9
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 7
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 6
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/selection pending 3
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/vesselgallery pending 1

And here is how it looks when 

if (options.ignoreDotFiles && path.basename(f)[0] === '.') {return;}

is moved 'up'.

dir3 /home/com/svn-workspace-indigo/shipscraper/attachments pending 1 
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments pending 19
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 19
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 18
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 17
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 16
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 15
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 14
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 13
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 12
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 11
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 10
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 9
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 8
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 8
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 7
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 6
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments pending 4
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 4 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 4 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 4 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 4 
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 6
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 7
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 13
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 49
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 48
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 47
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/images pending 46
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 45
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/bundle pending 44
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 43
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 42
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 41
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 40
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 39
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 38
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/styles pending 37
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 37
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 36
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 36
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 35
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 34
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 33
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 32
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 32
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 31
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 30
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 29
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 28
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 27
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 27
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 26
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 25
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 24
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 23
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 22
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 22
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 21
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 20
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 20
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 19
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 19
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 18
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 17
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 16
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 16
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 16
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 15
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 14
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 13
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 12
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 11
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 10
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts pending 9
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/geolocation pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/form pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/user pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/chat pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/grid pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/selection pending 9 
dir3 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/vesselgallery pending 9 
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/geolocation pending 9
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/form pending 9
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/user pending 9
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/chat pending 9
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/grid pending 9
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 10
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 11
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/selection pending 11
dir2 /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/vesselgallery pending 11
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/geolocation pending 10
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/form pending 9
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/user pending 8
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/chat pending 7
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/grid pending 6
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 5
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/tracks pending 4
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 3
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/map pending 2
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/selection pending 1
dir1  /home/com/svn-workspace-indigo/shipscraper/attachments/scripts/vesselgallery pending 0