Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tools/gardening/lib/src/util.dart

Issue 3005723002: Added ability to find builder-groups (Closed)
Patch Set: Landing with changes from johnniwinther Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gardening/lib/src/luci_services.dart ('k') | tools/gardening/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:args/args.dart'; 9 import 'package:args/args.dart';
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 if (argResults['verbose']) { 98 if (argResults['verbose']) {
99 LOG = true; 99 LOG = true;
100 } 100 }
101 if (argResults['cache'] != null) { 101 if (argResults['cache'] != null) {
102 cache.base = Uri.base.resolve('${argResults['cache']}/'); 102 cache.base = Uri.base.resolve('${argResults['cache']}/');
103 } 103 }
104 if (argResults['no-cache']) { 104 if (argResults['no-cache']) {
105 cache.base = null; 105 cache.base = null;
106 } 106 }
107 } 107 }
108
109 /// Strips un-wanted characters from string [category] from CBE json.
110 String sanitizeCategory(String category) {
111 // Category name starts with either two or three numbers and
112 // end with |all. Instead of doing any fancy regular-expr,
113 // we just test if third char is a number.
114 return category.substring(
115 category.codeUnitAt(2) <= 64 ? 3 : 2, category.length - 4);
116 }
OLDNEW
« no previous file with comments | « tools/gardening/lib/src/luci_services.dart ('k') | tools/gardening/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698