Switch to unified view

a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
...
...
324
        # Load last commit info
324
        # Load last commit info
325
        oids = [ x.id for x in chain(self.tree_ids, self.blob_ids, self.other_ids) ]
325
        oids = [ x.id for x in chain(self.tree_ids, self.blob_ids, self.other_ids) ]
326
        lc_index = dict(
326
        lc_index = dict(
327
            (lc.object_id, lc.commit_info)
327
            (lc.object_id, lc.commit_info)
328
            for lc in LastCommitDoc.m.find(dict(
328
            for lc in LastCommitDoc.m.find(dict(
329
                    # repo_id=self.repo._id,
329
                    _id={"$regex": "^{}:".format(self.repo._id)},
330
                    object_id={'$in': oids})))
330
                    object_id={'$in': oids})))
331
        results = []
331
        results = []
332
        def _get_last_commit(oid):
332
        def _get_last_commit(oid):
333
            lc = lc_index.get(oid)
333
            lc = lc_index.get(oid)
334
            if lc is None:
334
            if lc is None: