We should be using debug1() or debug2() instead, most of the time. print is
only for stuff that callers might actually want to read and parse.
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
indexfile = opt.indexfile or git.repo('bupindex')
-print indexfile
r = index.Reader(indexfile)
def already_saved(ent):
raise Exception('no path given')
normalized_prefix = realpath(prefix)
- print "normalized_prefix: " + normalized_prefix
+ debug2("normalized_prefix: %s\n" % normalized_prefix)
normalized_path = realpath(path)
- print "normalized_path: " + normalized_path
+ debug2("normalized_path: %s\n" % normalized_path)
if normalized_path.startswith(normalized_prefix):
return normalized_path[len(normalized_prefix):]
else: