|
a/Allura/allura/model/repo.py |
|
b/Allura/allura/model/repo.py |
|
... |
|
... |
9 |
class __mongometa__:
|
9 |
class __mongometa__:
|
10 |
name = 'repo_ci'
|
10 |
name = 'repo_ci'
|
11 |
session = main_doc_session
|
11 |
session = main_doc_session
|
12 |
indexes = [
|
12 |
indexes = [
|
13 |
('parent_ids',),
|
13 |
('parent_ids',),
|
14 |
('child_ids',) ]
|
14 |
('child_ids',),
|
|
|
15 |
('repo_ids',)]
|
15 |
User = dict(name=str, email=str, date=datetime)
|
16 |
User = dict(name=str, email=str, date=datetime)
|
16 |
|
17 |
|
17 |
_id = Field(str)
|
18 |
_id = Field(str)
|
18 |
tree_id = Field(str)
|
19 |
tree_id = Field(str)
|
19 |
committed = Field(User)
|
20 |
committed = Field(User)
|
20 |
authored = Field(User)
|
21 |
authored = Field(User)
|
21 |
message = Field(str)
|
22 |
message = Field(str)
|
22 |
parent_ids = Field([str])
|
23 |
parent_ids = Field([str])
|
23 |
child_ids = Field([str])
|
24 |
child_ids = Field([str])
|
|
|
25 |
repo_ids = Field([S.ObjectId()])
|
24 |
|
26 |
|
25 |
def __repr__(self):
|
27 |
def __repr__(self):
|
26 |
return '%s %s' % (
|
28 |
return '%s %s' % (
|
27 |
self._id[:7], self.summary)
|
29 |
self._id[:7], self.summary)
|
28 |
|
30 |
|
|
... |
|
... |
44 |
ObjType=S.OneOf('blob', 'tree', 'submodule')
|
46 |
ObjType=S.OneOf('blob', 'tree', 'submodule')
|
45 |
|
47 |
|
46 |
_id = Field(str)
|
48 |
_id = Field(str)
|
47 |
tree_ids = Field([dict(name=str, id=str)])
|
49 |
tree_ids = Field([dict(name=str, id=str)])
|
48 |
blob_ids = Field([dict(name=str, id=str)])
|
50 |
blob_ids = Field([dict(name=str, id=str)])
|
49 |
other_ids = Field([dict(name=str, id=str, type=str)])
|
51 |
other_ids = Field([dict(name=str, id=str, type=ObjType)])
|
50 |
|
52 |
|
51 |
class Trees(Document):
|
53 |
class Trees(Document):
|
52 |
class __mongometa__:
|
54 |
class __mongometa__:
|
53 |
name = 'repo_trees'
|
55 |
name = 'repo_trees'
|
54 |
session = main_doc_session
|
56 |
session = main_doc_session
|