Commit df7aea45 authored by bradnelson@google.com's avatar bradnelson@google.com

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
parent d090099e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment