Don't delete directories that have been superseded by a broader checkout.

BUG=237388

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@203384 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient_scm.py b/gclient_scm.py
index ba49f05..01dfd54 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -173,6 +173,9 @@
     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 @@
     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)."""