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

Side by Side Diff: roll_dep.py

Issue 1468183002: Strip trailing / or \ when rolling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Rolls DEPS controlled dependency. 6 """Rolls DEPS controlled dependency.
7 7
8 Works only with git checkout and git dependencies. Currently this 8 Works only with git checkout and git dependencies. Currently this
9 script will always roll to the tip of to origin/master. 9 script will always roll to the tip of to origin/master.
10 """ 10 """
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 reviewers = None 195 reviewers = None
196 if args.reviewer: 196 if args.reviewer:
197 reviewers = args.reviewer.split(',') 197 reviewers = args.reviewer.split(',')
198 for i, r in enumerate(reviewers): 198 for i, r in enumerate(reviewers):
199 if not '@' in r: 199 if not '@' in r:
200 reviewers[i] = r + '@chromium.org' 200 reviewers[i] = r + '@chromium.org'
201 201
202 try: 202 try:
203 roll( 203 roll(
204 os.getcwd(), 204 os.getcwd(),
205 args.dep_path, 205 args.dep_path.rstrip('/').rstrip('\\'),
206 args.roll_to, 206 args.roll_to,
207 args.key, 207 args.key,
208 reviewers, 208 reviewers,
209 args.bug, 209 args.bug,
210 args.no_log, 210 args.no_log,
211 args.log_limit, 211 args.log_limit,
212 args.ignore_dirty_tree) 212 args.ignore_dirty_tree)
213 213
214 except Error as e: 214 except Error as e:
215 sys.stderr.write('error: %s\n' % e) 215 sys.stderr.write('error: %s\n' % e)
216 return 1 216 return 1
217 217
218 return 0 218 return 0
219 219
220 220
221 if __name__ == '__main__': 221 if __name__ == '__main__':
222 sys.exit(main()) 222 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698