|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env python
|
|
|
|
#!/usr/bin/env python
|
|
|
|
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
|
|
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
@ -930,6 +930,12 @@ solutions = [
|
|
|
|
# Support for --revision 123
|
|
|
|
# Support for --revision 123
|
|
|
|
revision = '%s@%s' % (solutions_names[index], revision)
|
|
|
|
revision = '%s@%s' % (solutions_names[index], revision)
|
|
|
|
sol, rev = revision.split('@', 1)
|
|
|
|
sol, rev = revision.split('@', 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not sol in solutions_names and sol == 'trunk':
|
|
|
|
|
|
|
|
print >> sys.stderr, 'Rewriting "trunk" to "src" in --revision'
|
|
|
|
|
|
|
|
# Fix attempt for http://crbug.com/108515
|
|
|
|
|
|
|
|
sol = 'src'
|
|
|
|
|
|
|
|
|
|
|
|
if not sol in solutions_names:
|
|
|
|
if not sol in solutions_names:
|
|
|
|
#raise gclient_utils.Error('%s is not a valid solution.' % sol)
|
|
|
|
#raise gclient_utils.Error('%s is not a valid solution.' % sol)
|
|
|
|
print >> sys.stderr, ('Please fix your script, having invalid '
|
|
|
|
print >> sys.stderr, ('Please fix your script, having invalid '
|
|
|
|