From a78e553bf72e0c8d55bb799bd7214a9e3ca383f0 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Mon, 11 Mar 2013 13:33:03 +0000 Subject: [PATCH] Don't delete trees that have an exact match in entries either BUG=171212 TEST=v8 builders don't delete their checkout R=maruel@chromium.org Review URL: https://chromiumcodereview.appspot.com/12764004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@187285 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gclient.py b/gclient.py index 3467dcd55..8c54d3743 100644 --- a/gclient.py +++ b/gclient.py @@ -1136,7 +1136,8 @@ solutions = [ for path in path_list) # Use entry and not entry_fixed there. - if ((not any(path.startswith(entry + '/') for path in entries)) and + if (entry not in entries and + (not any(path.startswith(entry + '/') for path in entries)) and os.path.exists(e_dir)): file_list = [] scm = gclient_scm.CreateSCM(prev_url, self.root_dir, entry_fixed)