tests/test-inotify.t
author Levi Bard <levi@unity3d.com>
Sat, 07 Jan 2012 19:11:31 +0100
changeset 15795 8bed8551d535
parent 12450 0fcdae13493b
child 16913 f2719b387380
permissions -rw-r--r--
largefiles: add precommit hook to check for inappropriate locking This tests for inappropriate locking (issue3182) by running hg status as a precommit hook.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7145
6f4a253f2a64 inotify: fix status not showing "clean" files (issue907)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
     1
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     2
  $ "$TESTDIR/hghave" inotify || exit 80
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     3
  $ hg init repo1
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     4
  $ cd repo1
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     5
  $ touch a b c d e
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     6
  $ mkdir dir
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     7
  $ mkdir dir/bar
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     8
  $ touch dir/x dir/y dir/bar/foo
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
     9
  $ hg ci -Am m
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    10
  adding a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    11
  adding b
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    12
  adding c
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    13
  adding d
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    14
  adding dir/bar/foo
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    15
  adding dir/x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    16
  adding dir/y
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    17
  adding e
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    18
  $ cd ..
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    19
  $ hg clone repo1 repo2
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    20
  updating to branch default
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    21
  8 files updated, 0 files merged, 0 files removed, 0 files unresolved
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    22
  $ echo "[extensions]" >> $HGRCPATH
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    23
  $ echo "inotify=" >> $HGRCPATH
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    24
  $ cd repo2
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    25
  $ echo b >> a
7145
6f4a253f2a64 inotify: fix status not showing "clean" files (issue907)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
    26
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    27
check that daemon started automatically works correctly
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    28
and make sure that inotify.pidfile works
7145
6f4a253f2a64 inotify: fix status not showing "clean" files (issue907)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
    29
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    30
  $ hg --config "inotify.pidfile=../hg2.pid" status
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    31
  M a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    32
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    33
make sure that pidfile worked. Output should be silent.
9897
97eda2133a9b inotify: add a inotify.pidfile configuration possibility
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9896
diff changeset
    34
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    35
  $ kill `cat ../hg2.pid`
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    36
  $ cd ../repo1
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    37
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    38
inserve
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    39
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    40
  $ hg inserve -d --pid-file=hg.pid
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    41
  $ cat hg.pid >> "$DAEMON_PIDS"
9896
2c2f7593ffc4 cmdutil.service: do not _exit(0) in the parent process
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9854
diff changeset
    42
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    43
let the daemon finish its stuff
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    44
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    45
  $ sleep 1
7145
6f4a253f2a64 inotify: fix status not showing "clean" files (issue907)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
    46
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    47
cannot start, already bound
9900
8939900073a8 inotify: improve error messages
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9897
diff changeset
    48
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    49
  $ hg inserve
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    50
  abort: inotify-server: cannot start: socket is already bound
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    51
  [255]
9900
8939900073a8 inotify: improve error messages
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9897
diff changeset
    52
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    53
issue907
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    54
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    55
  $ hg status
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    56
  ? hg.pid
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    57
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    58
clean
7145
6f4a253f2a64 inotify: fix status not showing "clean" files (issue907)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff changeset
    59
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    60
  $ hg status -c
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    61
  C a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    62
  C b
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    63
  C c
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    64
  C d
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    65
  C dir/bar/foo
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    66
  C dir/x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    67
  C dir/y
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    68
  C e
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    69
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    70
all
7393
92c952c4470c inotify: fix status . in repo.root
Brendan Cully <brendan@kublai.com>
parents: 7351
diff changeset
    71
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    72
  $ hg status -A
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    73
  ? hg.pid
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    74
  C a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    75
  C b
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    76
  C c
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    77
  C d
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    78
  C dir/bar/foo
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    79
  C dir/x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    80
  C dir/y
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    81
  C e
9116
f90bbf1ea09f inotify: fix issue1375, add a test.
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 7393
diff changeset
    82
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    83
path patterns
9116
f90bbf1ea09f inotify: fix issue1375, add a test.
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 7393
diff changeset
    84
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    85
  $ echo x > dir/x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    86
  $ hg status .
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    87
  M dir/x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    88
  ? hg.pid
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    89
  $ hg status dir
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    90
  M dir/x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    91
  $ cd dir
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    92
  $ hg status .
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    93
  M x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    94
  $ cd ..
9117
a87bc6e2a907 inotify: server: explicitely ignore events in subdirs of .hg/ (issue1735)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9116
diff changeset
    95
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    96
issue 1375
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    97
testing that we can remove a folder and then add a file with the same name
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
    98
issue 1375
9117
a87bc6e2a907 inotify: server: explicitely ignore events in subdirs of .hg/ (issue1735)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9116
diff changeset
    99
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   100
  $ mkdir h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   101
  $ echo h > h/h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   102
  $ hg ci -Am t
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   103
  adding h/h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   104
  adding hg.pid
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   105
  $ hg rm h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   106
  removing h/h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   107
  $ echo h >h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   108
  $ hg add h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   109
  $ hg status
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   110
  A h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   111
  R h/h
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   112
  $ hg ci -m0
9117
a87bc6e2a907 inotify: server: explicitely ignore events in subdirs of .hg/ (issue1735)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9116
diff changeset
   113
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   114
Test for issue1735: inotify watches files in .hg/merge
9117
a87bc6e2a907 inotify: server: explicitely ignore events in subdirs of .hg/ (issue1735)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9116
diff changeset
   115
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   116
  $ hg st
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   117
  $ echo a > a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   118
  $ hg ci -Am a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   119
  $ hg st
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   120
  $ echo b >> a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   121
  $ hg ci -m ab
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   122
  $ hg st
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   123
  $ echo c >> a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   124
  $ hg st
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   125
  M a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   126
  $ HGMERGE=internal:local hg up 0
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   127
  1 files updated, 1 files merged, 2 files removed, 0 files unresolved
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   128
  $ hg st
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   129
  M a
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   130
  $ HGMERGE=internal:local hg up
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   131
  3 files updated, 1 files merged, 0 files removed, 0 files unresolved
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   132
  $ hg st
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   133
  M a
9854
95e1867f765b inotify: mark directories visited during lookup (issue1844)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9117
diff changeset
   134
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   135
Test for 1844: "hg ci folder" will not commit all changes beneath "folder"
9854
95e1867f765b inotify: mark directories visited during lookup (issue1844)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9117
diff changeset
   136
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   137
  $ mkdir 1844
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   138
  $ echo a > 1844/foo
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   139
  $ hg add 1844
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   140
  adding 1844/foo
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   141
  $ hg ci -m 'working'
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   142
  $ echo b >> 1844/foo
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   143
  $ hg ci 1844 -m 'broken'
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   144
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   145
Test for issue884: "Build products not ignored until .hgignore is touched"
11545
db9d16233787 inotify: check all components of filenames against hgignore (issue884)
Renato Cunha <renatoc@gmail.com>
parents: 10944
diff changeset
   146
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   147
  $ echo '^build$' > .hgignore
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   148
  $ hg add .hgignore
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   149
  $ hg ci .hgignore -m 'ignorelist'
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   150
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   151
Now, lets add some build products...
11545
db9d16233787 inotify: check all components of filenames against hgignore (issue884)
Renato Cunha <renatoc@gmail.com>
parents: 10944
diff changeset
   152
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   153
  $ mkdir build
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   154
  $ touch build/x
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   155
  $ touch build/y
11545
db9d16233787 inotify: check all components of filenames against hgignore (issue884)
Renato Cunha <renatoc@gmail.com>
parents: 10944
diff changeset
   156
12450
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   157
build/x & build/y shouldn't appear in "hg st"
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   158
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   159
  $ hg st
0fcdae13493b tests: unify test-inotify
Matt Mackall <mpm@selenic.com>
parents: 11545
diff changeset
   160
  $ kill `cat hg.pid`