Simple branch staleness implementation
parent: tbd commit: efc3f02
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | use Error; |
8 | use async_trait; |
9 | use Object; |
10 | use ; |
11 | use Value; |
12 | |
13 | use crate GitBackendError; |
14 | use UserAuthenticationToken; |
15 | |
16 | use |
17 | AuthenticationTokenRequest, Instance, RegisterAccountRequest, RepositoryCreateRequest, |
18 | ; |
19 | |
20 | use |
21 | Commit, IssueLabel, Repository, RepositoryBranch, RepositoryBranchesRequest, |
22 | RepositoryCommitBeforeRequest, RepositoryCommitFromIdRequest, RepositoryDiff, |
23 | RepositoryDiffPatchRequest, RepositoryDiffRequest, RepositoryFile, RepositoryFileFromIdRequest, |
24 | RepositoryFileFromPathRequest, RepositoryFileInspectRequest, RepositoryIssue, |
25 | RepositoryIssueLabelsRequest, RepositoryIssuesCountRequest, RepositoryIssuesRequest, |
26 | RepositoryLastCommitOfFileRequest, RepositoryStatistics, RepositoryStatisticsRequest, |
27 | RepositorySummary, RepositoryTreeEntry, |
28 | ; |
29 | |
30 | use User; |
31 | |
32 | |
33 | |
34 | async |
35 | &mut self, |
36 | user: &AuthenticatedUser, |
37 | request: &RepositoryCreateRequest, |
38 | ; |
39 | async |
40 | &mut self, |
41 | requester: & , |
42 | repository: &Repository, |
43 | request: &RepositoryFileInspectRequest, |
44 | ; |
45 | async |
46 | &mut self, |
47 | requester: & , |
48 | repository: &Repository, |
49 | request: &RepositoryFileFromIdRequest, |
50 | ; |
51 | async |
52 | &mut self, |
53 | requester: & , |
54 | repository: &Repository, |
55 | request: &RepositoryFileFromPathRequest, |
56 | ; |
57 | async |
58 | &mut self, |
59 | requester: & , |
60 | repository: &Repository, |
61 | request: &RepositoryCommitFromIdRequest, |
62 | ; |
63 | async |
64 | &mut self, |
65 | requester: & , |
66 | repository: &Repository, |
67 | request: &RepositoryLastCommitOfFileRequest, |
68 | ; |
69 | async |
70 | &mut self, |
71 | requester: & , |
72 | repository: &Repository, |
73 | request: &RepositoryDiffRequest, |
74 | ; |
75 | async |
76 | &mut self, |
77 | requester: & , |
78 | repository: &Repository, |
79 | request: &RepositoryDiffPatchRequest, |
80 | ; |
81 | async |
82 | &mut self, |
83 | requester: & , |
84 | repository: &Repository, |
85 | request: &RepositoryCommitBeforeRequest, |
86 | ; |
87 | async |
88 | &mut self, |
89 | requester: & , |
90 | repository: &Repository, |
91 | request: &RepositoryStatisticsRequest, |
92 | ; |
93 | async |
94 | &mut self, |
95 | requester: & , |
96 | repository_object: &mut , |
97 | OperationState | : ,
98 | request: &RepositoryBranchesRequest, |
99 | ; |
100 | async |
101 | &mut self, |
102 | requester: & , |
103 | repository: &Repository, |
104 | ; |
105 | |
106 | |
107 | |
108 | |
109 | &mut self, |
110 | requester: & , |
111 | request: &RepositoryIssuesCountRequest, |
112 | ; |
113 | |
114 | &mut self, |
115 | requester: & , |
116 | request: &RepositoryIssueLabelsRequest, |
117 | ; |
118 | |
119 | &mut self, |
120 | requester: & , |
121 | request: &RepositoryIssuesRequest, |
122 | ; |
123 | |
124 | |
125 | |
126 | |
127 | async |
128 | &mut self, |
129 | request: RegisterAccountRequest, |
130 | ; |
131 | |
132 | async |
133 | &mut self, |
134 | source: &Instance, |
135 | request: AuthenticationTokenRequest, |
136 | ; |
137 | |
138 | |
139 | |
140 | |
141 | async ; |
142 | async |
143 | &mut self, |
144 | requester: & , |
145 | user: &User, |
146 | ; |
147 | |
148 | |
149 | |
150 | |
151 | async ; |
152 | async ; |
153 | async |
154 | ; |
155 | async |
156 | &mut self, |
157 | repository: &Repository, |
158 | name: &str, |
159 | setting: Value, |
160 | ; |
161 | |
162 |