tests/test-inotify-lookup.t
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 30 Sep 2013 14:36:11 +0200
branchstable
changeset 19845 a1237a4b437d
parent 18594 a9e830ecd9fb
permissions -rw-r--r--
repoview: make propertycache.setcache compatible with repoview Propertycache used standard attribute assignment. In the repoview case, this assignment was forwarded to the unfiltered repo. This result in: (1) unfiltered repo got a potentially wrong cache value, (2) repoview never reused the cached value. This patch replaces the standard attribute assignment by an assignment to `objc.__dict__` which will bypass the `repoview.__setattr__`. This will not affects other `propertycache` users and it is actually closer to the semantic we need. The interaction of `propertycache` and `repoview` are now tested in a python test file.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7084
f5c18a581b8b inotify: add a test for lookup bug
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     1
12457
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     2
  $ "$TESTDIR/hghave" inotify || exit 80
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     3
  $ hg init
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     4
  $ echo "[extensions]" > .hg/hgrc
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     5
  $ echo "inotify=" >> .hg/hgrc
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     6
  $ hg inserve -d --pid-file .hg/inotify.pid
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     7
  $ echo a > a
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     8
  $ hg ci -Aqm0
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
     9
  $ hg co -q null
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
    10
  $ hg co -q
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
    11
  $ hg st
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
    12
  $ cat a
5ae8711ea324 tests: unify test-inotify-lookup
Matt Mackall <mpm@selenic.com>
parents: 7084
diff changeset
    13
  a
18594
a9e830ecd9fb test-inotify-lookup.t: migrate to killdaemons from kill `cat pidfile`
Augie Fackler <raf@durin42.com>
parents: 12457
diff changeset
    14
  $ "$TESTDIR/killdaemons.py" .hg/inotify.pid