Commit 0f8a944d authored by dbeam@chromium.org's avatar dbeam@chromium.org

[depot_tools] Allow gclient runhooks to work offline w/safesync_url.

R=maruel@chromium.org
BUG=None (AFAIK)
TEST=Turn off networking, run gclient runhooks.

Review URL: https://chromiumcodereview.appspot.com/10750007

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@145878 0039d316-1c4b-4281-b951-d872f2087c98
parent 987b0619
......@@ -1007,7 +1007,7 @@ solutions = [
revision_overrides = {}
# It's unnecessary to check for revision overrides for 'recurse'.
# Save a few seconds by not calling _EnforceRevisions() in that case.
if command is not 'recurse':
if command not in ('diff', 'recurse', 'runhooks', 'status'):
revision_overrides = self._EnforceRevisions()
pm = None
# Disable progress for non-tty stdout.
......
......@@ -108,6 +108,7 @@ class SVNUnittest(TryChangeTestsBase):
self.compareMembers(trychange.SVN, members)
def testBasic(self):
# pylint: disable=E1103
trychange.os.path.abspath(self.fake_root).AndReturn(self.fake_root)
trychange.scm.SVN.GetCheckoutRoot(self.fake_root).AndReturn(self.fake_root)
trychange.scm.SVN.GenerateDiff(['foo.txt', 'bar.txt'],
......
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