 Chromium Code Reviews
 Chromium Code Reviews Issue 388001:
  Make 'gcl diff emptychange' show nothing if given change, |emptychange|, does...  (Closed) 
  Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
    
  
    Issue 388001:
  Make 'gcl diff emptychange' show nothing if given change, |emptychange|, does...  (Closed) 
  Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/| Index: gcl.py | 
| =================================================================== | 
| --- gcl.py (revision 31548) | 
| +++ gcl.py (working copy) | 
| @@ -1283,6 +1283,8 @@ | 
| else: | 
| # Everything else that is passed into gcl we redirect to svn, after adding | 
| # the files. This allows commands such as 'gcl diff xxx' to work. | 
| + if command == "diff" and not change_info.GetFileNames(): | 
| + return 0 | 
| args =["svn", command] | 
| root = GetRepositoryRoot() | 
| args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) |