From 650bb1f97d03ab41f6d162e3ff506db9b535cc18 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 22 Dec 2009 13:47:39 +0000 Subject: [PATCH] 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 --- trychange.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trychange.py b/trychange.py index e29f054fd2..b53a4f5b67 100755 --- a/trychange.py +++ b/trychange.py @@ -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):