Show More
@@ -116,14 +116,7 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 |
|
119 | mask = ( | ||
120 | def __init__(self, ui, repo, master): |
|
|||
121 | self.ui = ui |
|
|||
122 | self.repo = repo |
|
|||
123 | self.wprefix = self.repo.wjoin('') |
|
|||
124 | self.timeout = None |
|
|||
125 | self.master = master |
|
|||
126 | self.mask = ( |
|
|||
127 |
|
|
120 | inotify.IN_ATTRIB | | |
128 |
|
|
121 | inotify.IN_CREATE | | |
129 |
|
|
122 | inotify.IN_DELETE | | |
@@ -135,6 +128,13 b' class RepoWatcher(object):' | |||||
135 |
|
|
128 | inotify.IN_ONLYDIR | | |
136 |
|
|
129 | inotify.IN_UNMOUNT | | |
137 |
|
|
130 | 0) | |
|
131 | ||||
|
132 | def __init__(self, ui, repo, master): | |||
|
133 | self.ui = ui | |||
|
134 | self.repo = repo | |||
|
135 | self.wprefix = self.repo.wjoin('') | |||
|
136 | self.timeout = None | |||
|
137 | self.master = master | |||
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