Add stdout param to SubprocessCallAndFilter().
It will eventually replace 'print_messages' and be used to annotate printed
lines when using --jobs.
Review URL: http://codereview.chromium.org/3174020
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@57092 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient_scm.py b/gclient_scm.py
index be176fb..50d9be7 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -154,7 +154,8 @@
merge_base = self._Run(['merge-base', 'HEAD', 'origin'])
command = ['diff', merge_base]
filterer = DiffFilterer(self.relpath)
- scm.GIT.RunAndFilterOutput(command, path, False, False, filterer.Filter)
+ scm.GIT.RunAndFilterOutput(command, path, False, False, filterer.Filter,
+ stdout=options.stdout)
def update(self, options, args, file_list):
"""Runs git to update or transparently checkout the working copy.
@@ -706,7 +707,8 @@
command.extend(args)
filterer = DiffFilterer(self.relpath)
- scm.SVN.RunAndFilterOutput(command, path, False, False, filterer.Filter)
+ scm.SVN.RunAndFilterOutput(command, path, False, False, filterer.Filter,
+ stdout=options.stdout)
def update(self, options, args, file_list):
"""Runs svn to update or transparently checkout the working copy.