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

Side by Side Diff: tools/findit/utils.py

Issue 391173002: [Findit] Initiate Findit for crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add cacert.pem Created 6 years, 5 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 | Annotate | Revision Log
« tools/findit/chromium_deps.py ('K') | « tools/findit/run_all_tests.py ('k') | 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
(Empty)
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import sys
6
7
8 def GetOSName(platform_name=sys.platform):
9 if platform_name == 'cygwin' or platform_name.startswith('win'):
10 return 'win'
11 elif platform_name.startswith('linux'):
12 return 'unix'
13 elif platform_name.startswith('darwin'):
14 return 'mac'
15 else:
16 return platform_name
17
18
19 def IsSvnRevision(revision):
20 revision = str(revision)
21 return len(revision) < 8 and revision.isdigit()
Martin Barbella 2014/07/22 06:35:43 This seems like a hack. It would probably be clean
stgao 2014/07/22 20:30:35 In fact, depot_tools/roll_dep.py also does a check
OLDNEW
« tools/findit/chromium_deps.py ('K') | « tools/findit/run_all_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698