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

Side by Side Diff: gcl.py

Issue 2077003: Fix a logic error (Closed)
Patch Set: Created 10 years, 7 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 | « 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2009 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 """Wrapper script around Rietveld's upload.py that groups files into 6 """Wrapper script around Rietveld's upload.py that groups files into
7 changelists.""" 7 changelists."""
8 8
9 import getpass 9 import getpass
10 import os 10 import os
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 629
630 630
631 def CMDstatus(argv): 631 def CMDstatus(argv):
632 """Lists modified and unknown files in the current directory down.""" 632 """Lists modified and unknown files in the current directory down."""
633 __pychecker__ = 'unusednames=argv' 633 __pychecker__ = 'unusednames=argv'
634 return ListFiles(True) 634 return ListFiles(True)
635 635
636 636
637 def CMDhelp(argv=None): 637 def CMDhelp(argv=None):
638 """Prints this help or help for the given command.""" 638 """Prints this help or help for the given command."""
639 if len(argv) > 2: 639 if argv and len(argv) > 2:
640 if argv[2] == 'try': 640 if argv[2] == 'try':
641 TryChange(None, ['--help'], swallow_exception=False) 641 TryChange(None, ['--help'], swallow_exception=False)
642 return 0 642 return 0
643 if argv[2] == 'upload': 643 if argv[2] == 'upload':
644 upload.RealMain(['upload.py', '--help']) 644 upload.RealMain(['upload.py', '--help'])
645 return 0 645 return 0
646 646
647 print ( 647 print (
648 """GCL is a wrapper for Subversion that simplifies working with groups of files. 648 """GCL is a wrapper for Subversion that simplifies working with groups of files.
649 version """ + __version__ + """ 649 version """ + __version__ + """
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 return 0 1322 return 0
1323 args =["svn", command] 1323 args =["svn", command]
1324 root = GetRepositoryRoot() 1324 root = GetRepositoryRoot()
1325 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) 1325 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()])
1326 RunShell(args, True) 1326 RunShell(args, True)
1327 return 0 1327 return 0
1328 1328
1329 1329
1330 if __name__ == "__main__": 1330 if __name__ == "__main__":
1331 sys.exit(main()) 1331 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