Mercurial > hg
view tests/test-dirstatedirs @ 8320:a1305c1c8d8e
inotify: inotify.server.walk() simplify algorithm
Do not yield (bool, tuple) in a subfunction and check later:
'if not bool: yield tuple'.
Instead simplify so the tuple doesnt get yielded on the first time, to avoid
systematic checks.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 04 May 2009 16:57:52 +0900 |
parents | 6dab29f6df37 |
children |
line wrap: on
line source
#!/bin/sh # test dirstate._dirs refcounting hg init t cd t mkdir -p a/b/c/d touch a/b/c/d/x touch a/b/c/d/y touch a/b/c/d/z hg ci -Am m hg mv a z