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

Unified Diff: gclient_utils.py

Issue 440263002: Revert of Add --no-history option to fetch and gclient for shallow clones. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 4 months 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_scm.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_utils.py
diff --git a/gclient_utils.py b/gclient_utils.py
index f0d8cec6f49cb99637af1c11ac8e5e54d5ef8bb1..9c62a2a5b53af41b5aedae595bda06ecc61b1b77 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -82,11 +82,6 @@
if len(components) == 1:
components += [None]
return tuple(components)
-
-
-def IsGitSha(revision):
- """Returns true if the given string is a valid hex-encoded sha"""
- return re.match('^[a-fA-F0-9]{6,40}$', revision) is not None
def IsDateRevision(revision):
« no previous file with comments | « gclient_scm.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698