# HG changeset patch # User Brendan Cully # Date 1227128448 28800 # Node ID 92c952c4470c41647a30184b21466554021d580e # Parent 564326a6ef9c0ff5a20c5f9ca96b6a52d921f67f inotify: fix status . in repo.root diff -r 564326a6ef9c -r 92c952c4470c hgext/inotify/__init__.py --- a/hgext/inotify/__init__.py Wed Nov 19 13:27:57 2008 +0100 +++ b/hgext/inotify/__init__.py Wed Nov 19 13:00:48 2008 -0800 @@ -52,6 +52,8 @@ def status(self, match, ignored, clean, unknown=True): files = match.files() + if '.' in files: + files = [] try: if not ignored and not self.inotifyserver: result = client.query(ui, repo, files, match, False, diff -r 564326a6ef9c -r 92c952c4470c tests/test-inotify --- a/tests/test-inotify Wed Nov 19 13:27:57 2008 +0100 +++ b/tests/test-inotify Wed Nov 19 13:00:48 2008 -0800 @@ -27,4 +27,12 @@ echo % all hg status -A +echo '% path patterns' +echo x > dir/x +hg status . +hg status dir +cd dir +hg status . +cd .. + kill `cat hg.pid` diff -r 564326a6ef9c -r 92c952c4470c tests/test-inotify.out --- a/tests/test-inotify.out Wed Nov 19 13:27:57 2008 +0100 +++ b/tests/test-inotify.out Wed Nov 19 13:00:48 2008 -0800 @@ -27,3 +27,8 @@ C dir/x C dir/y C e +% path patterns +M dir/x +? hg.pid +M dir/x +M x