equal
deleted
inserted
replaced
45 class inotifydirstate(repo.dirstate.__class__): |
45 class inotifydirstate(repo.dirstate.__class__): |
46 # Set to True if we're the inotify server, so we don't attempt |
46 # Set to True if we're the inotify server, so we don't attempt |
47 # to recurse. |
47 # to recurse. |
48 inotifyserver = False |
48 inotifyserver = False |
49 |
49 |
50 def status(self, files, match, list_ignored, list_clean, |
50 def status(self, match, list_ignored, list_clean, |
51 list_unknown=True): |
51 list_unknown=True): |
|
52 files = match.files() |
52 try: |
53 try: |
53 if not list_ignored and not self.inotifyserver: |
54 if not list_ignored and not self.inotifyserver: |
54 result = client.query(ui, repo, files, match, False, |
55 result = client.query(ui, repo, files, match, False, |
55 list_clean, list_unknown) |
56 list_clean, list_unknown) |
56 if result is not None: |
57 if result is not None: |
86 ui.warn(_('could not talk to new inotify ' |
87 ui.warn(_('could not talk to new inotify ' |
87 'server: %s\n') % err[1]) |
88 'server: %s\n') % err[1]) |
88 ui.print_exc() |
89 ui.print_exc() |
89 |
90 |
90 return super(inotifydirstate, self).status( |
91 return super(inotifydirstate, self).status( |
91 files, match or util.always, list_ignored, list_clean, |
92 match, list_ignored, list_clean, |
92 list_unknown) |
93 list_unknown) |
93 |
94 |
94 repo.dirstate.__class__ = inotifydirstate |
95 repo.dirstate.__class__ = inotifydirstate |
95 |
96 |
96 cmdtable = { |
97 cmdtable = { |