Show More
@@ -140,9 +140,18 b' class WhooshIndexingDaemon(object):' | |||||
140 | return index_paths_ |
|
140 | return index_paths_ | |
141 |
|
141 | |||
142 | def get_node(self, repo, path): |
|
142 | def get_node(self, repo, path): | |
143 | n_path = path[len(repo.path) + 1:] |
|
143 | """ | |
|
144 | gets a filenode based on given full path.It operates on string for | |||
|
145 | hg git compatability. | |||
|
146 | ||||
|
147 | :param repo: scm repo instance | |||
|
148 | :param path: full path including root location | |||
|
149 | :return: FileNode | |||
|
150 | """ | |||
|
151 | root_path = safe_str(repo.path)+'/' | |||
|
152 | parts = safe_str(path).partition(root_path) | |||
144 | cs = self._get_index_changeset(repo) |
|
153 | cs = self._get_index_changeset(repo) | |
145 |
node = cs.get_node( |
|
154 | node = cs.get_node(parts[-1]) | |
146 | return node |
|
155 | return node | |
147 |
|
156 | |||
148 | def get_node_mtime(self, node): |
|
157 | def get_node_mtime(self, node): |
General Comments 0
You need to be logged in to leave comments.
Login now