diff --git a/hgext/inotify/server.py b/hgext/inotify/server.py index b695392491e723e49c9e299740bf1c5f88b845fb_aGdleHQvaW5vdGlmeS9zZXJ2ZXIucHk=..1c5d93b225f7703ab2c4c7d8f39a57f62360d27f_aGdleHQvaW5vdGlmeS9zZXJ2ZXIucHk= 100644 --- a/hgext/inotify/server.py +++ b/hgext/inotify/server.py @@ -59,7 +59,6 @@ # This function is critical to performance during startup. - reporoot = root == '' rootslash = repo.root + os.sep def walkit(root, reporoot): @@ -78,7 +77,6 @@ break dirs.append(name) elif kind in (stat.S_IFREG, stat.S_IFLNK): - path = join(root, name) files.append((name, kind)) yield hginside, fullpath, dirs, files @@ -93,7 +91,7 @@ except OSError, err: if err.errno not in walk_ignored_errors: raise - for result in walkit(root, reporoot): + for result in walkit(root, root == ''): yield result[1:] def _explain_watch_limit(ui, repo, count):