Printing progress messages to stdout causes them to get mixed up with
the actual output of the program. Using stderr is much better, since
the user can then redirect the two components separately.
Signed-off-by: Karl Hasselström <kha@treskal.com>
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
"""Returns a list of pairs - [status, filename]
"""
if verbose:
- print 'Checking for changes in the working directory...',
- sys.stdout.flush()
+ print >> sys.stderr, \
+ 'Checking for changes in the working directory...',
+ sys.stderr.flush()
refresh_index()
cache_files.append(fs)
if verbose:
- print 'done'
+ print >> sys.stderr, 'done'
return cache_files