Show More
@@ -116,6 +116,18 b' def _explain_watch_limit(ui, repo, count' | |||||
116 | class RepoWatcher(object): |
|
116 | class RepoWatcher(object): | |
117 | poll_events = select.POLLIN |
|
117 | poll_events = select.POLLIN | |
118 | statuskeys = 'almr!?' |
|
118 | statuskeys = 'almr!?' | |
|
119 | mask = ( | |||
|
120 | inotify.IN_ATTRIB | | |||
|
121 | inotify.IN_CREATE | | |||
|
122 | inotify.IN_DELETE | | |||
|
123 | inotify.IN_DELETE_SELF | | |||
|
124 | inotify.IN_MODIFY | | |||
|
125 | inotify.IN_MOVED_FROM | | |||
|
126 | inotify.IN_MOVED_TO | | |||
|
127 | inotify.IN_MOVE_SELF | | |||
|
128 | inotify.IN_ONLYDIR | | |||
|
129 | inotify.IN_UNMOUNT | | |||
|
130 | 0) | |||
119 |
|
131 | |||
120 | def __init__(self, ui, repo, master): |
|
132 | def __init__(self, ui, repo, master): | |
121 | self.ui = ui |
|
133 | self.ui = ui | |
@@ -123,18 +135,6 b' class RepoWatcher(object):' | |||||
123 | self.wprefix = self.repo.wjoin('') |
|
135 | self.wprefix = self.repo.wjoin('') | |
124 | self.timeout = None |
|
136 | self.timeout = None | |
125 | self.master = master |
|
137 | self.master = master | |
126 | self.mask = ( |
|
|||
127 | inotify.IN_ATTRIB | |
|
|||
128 | inotify.IN_CREATE | |
|
|||
129 | inotify.IN_DELETE | |
|
|||
130 | inotify.IN_DELETE_SELF | |
|
|||
131 | inotify.IN_MODIFY | |
|
|||
132 | inotify.IN_MOVED_FROM | |
|
|||
133 | inotify.IN_MOVED_TO | |
|
|||
134 | inotify.IN_MOVE_SELF | |
|
|||
135 | inotify.IN_ONLYDIR | |
|
|||
136 | inotify.IN_UNMOUNT | |
|
|||
137 | 0) |
|
|||
138 | try: |
|
138 | try: | |
139 | self.watcher = watcher.Watcher() |
|
139 | self.watcher = watcher.Watcher() | |
140 | except OSError, err: |
|
140 | except OSError, err: |
General Comments 0
You need to be logged in to leave comments.
Login now