• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revision5dafae54af0f7e44ba5862e2146b4067fb9c0339 (tree)
Time2012-07-13 01:23:06
AuthorTim Van Steenburgh <tvansteenburgh@gmai...>
CommiterCory Johns

Log Message

[#4523] Make sure LastCommitDocs get set properly for forks.

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>

Change Summary

Incremental Difference

--- a/Allura/allura/model/repo_refresh.py
+++ b/Allura/allura/model/repo_refresh.py
@@ -67,7 +67,10 @@ def refresh_repo(repo, all_commits=False, notify=True):
6767
6868 # Compute diffs
6969 cache = {}
70- for i, oid in enumerate(reversed(commit_ids)):
70+ # Have to compute_diffs() for all commits to ensure that LastCommitDocs
71+ # are set properly for forked repos. For SVN, compute_diffs() will return
72+ # immediately, so no real work is done.
73+ for i, oid in enumerate(reversed(all_commit_ids)):
7174 ci = CommitDoc.m.find(dict(_id=oid), validate=False).next()
7275 compute_diffs(repo._id, cache, ci)
7376 if (i+1) % 100 == 0: