Small cleanups in trychange.py

Review URL: http://codereview.chromium.org/509020

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35145 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 16 years ago
parent b24a8e1a5a
commit 650bb1f97d

@ -115,6 +115,7 @@ class SVN(SCM):
def GetBots(self): def GetBots(self):
try: try:
# Try to search on the subversion repository for the file.
import gcl import gcl
return gcl.GetCachedFile('PRESUBMIT.py', use_root=True) return gcl.GetCachedFile('PRESUBMIT.py', use_root=True)
except ImportError: except ImportError:
@ -143,6 +144,7 @@ class GIT(SCM):
def GetBots(self): def GetBots(self):
try: try:
# A git checkout is always a full checkout.
return gclient_utils.FileRead(os.path.join(self.checkout_root, return gclient_utils.FileRead(os.path.join(self.checkout_root,
'PRESUBMIT.py')) 'PRESUBMIT.py'))
except (IOError, OSError): except (IOError, OSError):

Loading…
Cancel
Save