|
a/Allura/allura/model/repository.py |
|
b/Allura/allura/model/repository.py |
|
... |
|
... |
607 |
'''Update the last_commit_for object based on the passed in commit &
|
607 |
'''Update the last_commit_for object based on the passed in commit &
|
608 |
repo'''
|
608 |
repo'''
|
609 |
if repo is None: repo = c.app.repo
|
609 |
if repo is None: repo = c.app.repo
|
610 |
lc, isnew = LastCommitFor.upsert(repo_id=repo._id, object_id=self.object_id)
|
610 |
lc, isnew = LastCommitFor.upsert(repo_id=repo._id, object_id=self.object_id)
|
611 |
if not ci.authored.date:
|
611 |
if not ci.authored.date:
|
612 |
repo.refresh_commit(ci)
|
612 |
repo._impl.refresh_commit(ci)
|
613 |
if isnew:
|
613 |
if isnew:
|
614 |
lc.last_commit.author = ci.authored.name
|
614 |
lc.last_commit.author = ci.authored.name
|
615 |
lc.last_commit.author_email = ci.authored.email
|
615 |
lc.last_commit.author_email = ci.authored.email
|
616 |
lc.last_commit.author_url = ci.author_url
|
616 |
lc.last_commit.author_url = ci.author_url
|
617 |
lc.last_commit.date = ci.authored.date
|
617 |
lc.last_commit.date = ci.authored.date
|