def __init__(self, ui, dirstate, root):
        server.repowatcher.__init__(self, ui, dirstate, root)

        self.lastevent = {}
        self.dirty = False
        try:
            self.watcher = watcher.watcher()
        except OSError, err:
            raise util.Abort(_("inotify service not available: %s") % err.strerror)
Example #2
0
 def __init__(self, ui, repo):
     self.ui = ui
     self.repo = repo
     self.wprefix = self.repo.wjoin('')
     try:
         self.watcher = watcher.watcher()
     except OSError, err:
         raise util.Abort(_('inotify service not available: %s') %
                          err.strerror)
Example #3
0
    def __init__(self, ui, dirstate, root):
        server.repowatcher.__init__(self, ui, dirstate, root)

        self.lastevent = {}
        self.dirty = False
        try:
            self.watcher = watcher.watcher()
        except OSError, err:
            raise util.Abort(
                _('inotify service not available: %s') % err.strerror)
Example #4
0
    def __init__(self, ui, dirstate, root):
        self.ui = ui
        self.dirstate = dirstate

        self.wprefix = join(root, '')
        self.prefixlen = len(self.wprefix)
        try:
            self.watcher = watcher.watcher()
        except OSError, err:
            raise util.Abort(_('inotify service not available: %s') %
                             err.strerror)
Example #5
0
    def __init__(self, ui, dirstate, root):
        self.ui = ui
        self.dirstate = dirstate

        self.wprefix = join(root, '')
        self.prefixlen = len(self.wprefix)
        try:
            self.watcher = watcher.watcher()
        except OSError, err:
            raise util.Abort(
                _('inotify service not available: %s') % err.strerror)