From 2e0c685cfd16fd8f7bae6a214370e09a952e1faf Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Thu, 24 Sep 2009 00:02:07 +0000 Subject: [PATCH] Fix gclient breakage cause by r26940. Current checkout revision was ignored so it was always acting like if --force was used. This was overloading the subversion server, creating timeouts, causing a cascading effect that destroyed the tree. BUG=none TEST=none Review URL: http://codereview.chromium.org/225022 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@27027 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_scm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gclient_scm.py b/gclient_scm.py index fe0ac9839..df76188bf 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -212,7 +212,7 @@ class SVNWrapper(SCMWrapper): # If the provided url has a revision number that matches the revision # number of the existing directory, then we don't need to bother updating. - if not options.force and from_info['Revision'] == revision: + if not options.force and str(from_info['Revision']) == revision: if options.verbose or not forced_revision: print("\n_____ %s%s" % (self.relpath, rev_str)) return