| @@ 221-230 (lines=10) @@ | ||
| 218 | { |
|
| 219 | // Branches |
|
| 220 | $branches = array(); |
|
| 221 | foreach ($project->DNBranchList() as $branch) { |
|
| 222 | $sha = $branch->SHA(); |
|
| 223 | $name = $branch->Name(); |
|
| 224 | $branchValue = sprintf("%s (%s, %s old)", |
|
| 225 | $name, |
|
| 226 | substr($sha, 0, 8), |
|
| 227 | $branch->LastUpdated()->TimeDiff() |
|
| 228 | ); |
|
| 229 | $branches[$sha . '-' . $name] = $branchValue; |
|
| 230 | } |
|
| 231 | ||
| 232 | // Tags |
|
| 233 | $tags = array(); |
|
| @@ 234-243 (lines=10) @@ | ||
| 231 | ||
| 232 | // Tags |
|
| 233 | $tags = array(); |
|
| 234 | foreach ($project->DNTagList()->setLimit(null) as $tag) { |
|
| 235 | $sha = $tag->SHA(); |
|
| 236 | $name = $tag->Name(); |
|
| 237 | $tagValue = sprintf("%s (%s, %s old)", |
|
| 238 | $name, |
|
| 239 | substr($sha, 0, 8), |
|
| 240 | $branch->LastUpdated()->TimeDiff() |
|
| 241 | ); |
|
| 242 | $tags[$sha . '-' . $tag] = $tagValue; |
|
| 243 | } |
|
| 244 | $tags = array_reverse($tags); |
|
| 245 | ||
| 246 | // Past deployments |
|