From df7aea45bda60149bd31de92a6e71eec1ace8375 Mon Sep 17 00:00:00 2001 From: "bradnelson@google.com" Date: Thu, 17 Sep 2009 01:22:35 +0000 Subject: [PATCH] Fixing issue in which for large patches, files fail to revert. Flaw in loop logic, causes it to miss the occasional file. BUG=None TEST=None TBR=maruel Review URL: http://codereview.chromium.org/209008 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26427 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_scm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gclient_scm.py b/gclient_scm.py index f38f09594..902d8e846 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -249,8 +249,8 @@ class SCMWrapper(object): if accumulated_length and accumulated_length + len(p) > 3072: RunSVN(command + accumulated_paths, os.path.join(self._root_dir, self.relpath)) - accumulated_paths = [] - accumulated_length = 0 + accumulated_paths = [p] + accumulated_length = len(p) else: accumulated_paths.append(p) accumulated_length += len(p)