• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

修訂bca938bf26f70cc57e5975aaaa2f7e64e6c3c86f (tree)
時間2012-07-02 22:01:29
作者Tim Van Steenburgh <tvansteenburgh@gmai...>
CommiterTim Van Steenburgh

Log Message

[#4479] Set repo context for parent/child commits.

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

Change Summary

差異

--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -233,8 +233,12 @@ class Commit(RepoObject):
233233 result = dict(prev=None, next=None)
234234 if self.parent_ids:
235235 result['prev'] = self.query.find(dict(_id={'$in': self.parent_ids })).all()
236+ for ci in result['prev']:
237+ ci.set_context(self.repo)
236238 if self.child_ids:
237239 result['next'] = self.query.find(dict(_id={'$in': self.child_ids })).all()
240+ for ci in result['next']:
241+ ci.set_context(self.repo)
238242 return result
239243
240244 @LazyProperty