Mercurial > hg
comparison hgext/inotify/__init__.py @ 9352:37042e8b3b34
inotify: repo is not referenced from server, remove the weakref
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 01:33:26 +0900 |
parents | 206f7f4c5c2a |
children | f7c334e810c2 |
comparison
equal
deleted
inserted
replaced
9351:206f7f4c5c2a | 9352:37042e8b3b34 |
---|---|
55 | 55 |
56 def reposetup(ui, repo): | 56 def reposetup(ui, repo): |
57 if not hasattr(repo, 'dirstate'): | 57 if not hasattr(repo, 'dirstate'): |
58 return | 58 return |
59 | 59 |
60 # XXX: weakref until hg stops relying on __del__ | |
61 repo = proxy(repo) | |
62 | |
63 class inotifydirstate(repo.dirstate.__class__): | 60 class inotifydirstate(repo.dirstate.__class__): |
64 | 61 |
65 # We'll set this to false after an unsuccessful attempt so that | 62 # We'll set this to false after an unsuccessful attempt so that |
66 # next calls of status() within the same instance don't try again | 63 # next calls of status() within the same instance don't try again |
67 # to start an inotify server if it won't start. | 64 # to start an inotify server if it won't start. |