Index: depot_tools/gcl.py |
=================================================================== |
--- depot_tools/gcl.py (revision 14622) |
+++ depot_tools/gcl.py (working copy) |
@@ -17,6 +17,10 @@ |
import upload |
import urllib2 |
+ |
+__version__ = '1.0' |
+ |
+ |
CODEREVIEW_SETTINGS = { |
# Default values. |
"CODE_REVIEW_SERVER": "codereview.chromium.org", |
@@ -199,9 +203,9 @@ |
return RunShellWithReturnCode(command, print_output)[0] |
-def ReadFile(filename): |
+def ReadFile(filename, flags='r'): |
"""Returns the contents of a file.""" |
- file = open(filename, 'r') |
+ file = open(filename, flags) |
result = file.read() |
file.close() |
return result |
@@ -572,6 +576,7 @@ |
print ( |
"""GCL is a wrapper for Subversion that simplifies working with groups of files. |
+version """ + __version__ + """ |
Basic commands: |
----------------------------------------- |