|
a/Allura/allura/model/repo.py |
|
b/Allura/allura/model/repo.py |
|
... |
|
... |
330 |
return (x.name, h.really_unicode(blob.text))
|
330 |
return (x.name, h.really_unicode(blob.text))
|
331 |
return None, None
|
331 |
return None, None
|
332 |
|
332 |
|
333 |
def ls(self):
|
333 |
def ls(self):
|
334 |
# Load last commit info
|
334 |
# Load last commit info
|
335 |
id_re = re.compile("^{0}:{1}:".format(self.repo._id, self.path()))
|
335 |
id_re = re.compile("^{0}:{1}:".format(self.repo._id, h.really_unicode(self.path()).encode('utf-8')))
|
336 |
lc_index = dict(
|
336 |
lc_index = dict(
|
337 |
(lc.name, lc.commit_info)
|
337 |
(lc.name, lc.commit_info)
|
338 |
for lc in LastCommitDoc.m.find(dict(_id=id_re)))
|
338 |
for lc in LastCommitDoc.m.find(dict(_id=id_re)))
|
339 |
|
339 |
|
340 |
# FIXME: Temporarily fall back to old, semi-broken lookup behavior until refresh is done
|
340 |
# FIXME: Temporarily fall back to old, semi-broken lookup behavior until refresh is done
|