Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1633)

Unified Diff: git_cl_hooks.py

Issue 391075: Revert 32057, 32058, 32059, 32062 because they still have unwanted side-effects. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gclient_utils.py ('k') | presubmit_support.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl_hooks.py
diff --git a/git_cl_hooks.py b/git_cl_hooks.py
index c63cbe268c8e9af5a8210dcb8aff3d2fee4944f3..5203096f544f6bfde174223ef60a957a939eb7eb 100644
--- a/git_cl_hooks.py
+++ b/git_cl_hooks.py
@@ -7,8 +7,9 @@ import re
import subprocess
import sys
+# Imported from depot_tools.
+import gclient_scm
import presubmit_support
-import scm
def Backquote(cmd, cwd=None):
"""Like running `cmd` in a shell script."""
@@ -34,7 +35,7 @@ class ChangeOptions:
raise Exception("Could not parse log message: %s" % log)
name = m.group(1)
description = m.group(2)
- files = scm.GIT.CaptureStatus([root], upstream_branch)
+ files = gclient_scm.CaptureGitStatus([root], upstream_branch)
issue = Backquote(['git', 'cl', 'status', '--field=id'])
patchset = None
self.change = presubmit_support.GitChange(name, description, root, files,
« no previous file with comments | « gclient_utils.py ('k') | presubmit_support.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698