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

Unified Diff: gclient_scm.py

Issue 14583004: Don't delete directories that have been superseded by a broader checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Rebase onto latest master. Created 7 years, 7 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.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_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index ba49f050c66d4a41a416dd801af2247e4ff32223..01dfd54675b32151d38eb6fe27629650397a32bd 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -173,6 +173,9 @@ class GitWrapper(SCMWrapper):
except OSError:
return False
+ def GetCheckoutRoot(self):
+ return scm.GIT.GetCheckoutRoot(self.checkout_path)
+
def GetRevisionDate(self, revision):
"""Returns the given revision's date in ISO-8601 format (which contains the
time zone)."""
@@ -920,6 +923,9 @@ class SVNWrapper(SCMWrapper):
except OSError:
return False
+ def GetCheckoutRoot(self):
+ return scm.SVN.GetCheckoutRoot(self.checkout_path)
+
def GetRevisionDate(self, revision):
"""Returns the given revision's date in ISO-8601 format (which contains the
time zone)."""
« no previous file with comments | « gclient.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698