|
a/Allura/allura/controllers/repository.py |
|
b/Allura/allura/controllers/repository.py |
|
... |
|
... |
431 |
def log(self, limit=25, page=0, path=None, **kw):
|
431 |
def log(self, limit=25, page=0, path=None, **kw):
|
432 |
limit, page, start = g.handle_paging(limit, page, default=25)
|
432 |
limit, page, start = g.handle_paging(limit, page, default=25)
|
433 |
if path:
|
433 |
if path:
|
434 |
path = path.lstrip('/')
|
434 |
path = path.lstrip('/')
|
435 |
params = dict(path=path, rev=self._commit._id)
|
435 |
params = dict(path=path, rev=self._commit._id)
|
436 |
commits = c.app.repo.commits(skip=start, limit=limit, **params)
|
436 |
commits = list(c.app.repo.commits(skip=start, limit=limit, **params))
|
437 |
count = c.app.repo.commits_count(**params)
|
437 |
count = c.app.repo.commits_count(**params)
|
438 |
revisions = M.repo.Commit.query.find({'_id': {'$in': commits}}).sort('committed.date', -1)
|
438 |
revisions = M.repo.Commit.query.find({'_id': {'$in': commits}}).sort('committed.date', -1)
|
439 |
c.log_widget = self.log_widget
|
439 |
c.log_widget = self.log_widget
|
440 |
return dict(
|
440 |
return dict(
|
441 |
username=c.user._id and c.user.username,
|
441 |
username=c.user._id and c.user.username,
|