Commit 650bb1f9 authored by maruel@chromium.org's avatar maruel@chromium.org

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
parent b24a8e1a
......@@ -115,6 +115,7 @@ class SVN(SCM):
def GetBots(self):
try:
# Try to search on the subversion repository for the file.
import gcl
return gcl.GetCachedFile('PRESUBMIT.py', use_root=True)
except ImportError:
......@@ -143,6 +144,7 @@ class GIT(SCM):
def GetBots(self):
try:
# A git checkout is always a full checkout.
return gclient_utils.FileRead(os.path.join(self.checkout_root,
'PRESUBMIT.py'))
except (IOError, OSError):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment