Mercurial > hg
comparison hgext/inotify/__init__.py @ 6603:41eb20cc1c02
match: remove files arg from repo.status and friends
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | 39cfcef4f463 |
children | ed5ffb2c12f3 |
comparison
equal
deleted
inserted
replaced
6602:a57a27b12965 | 6603:41eb20cc1c02 |
---|---|
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 = { |