Print this page
9867 pbchk exception_lists only work from top srcdir

*** 196,219 **** def ret(select=None): if not select: select = lambda x: True ! for f in git_file_list(parent, paths): ! f = relpath(f, '.') try: ! res = git("diff %s HEAD %s" % (parent, f)) except GitError, e: ! # This ignores all the errors that can be thrown. Usually, this means ! # that git returned non-zero because the file doesn't exist, but it ! # could also fail if git can't create a new file or it can't be ! # executed. Such errors are 1) unlikely, and 2) will be caught by other ! # invocations of git(). continue empty = not res.readline() ! if (os.path.isfile(f) and not empty and select(f) and not exclude(f)): ! yield f return ret def comchk(root, parent, flist, output): output.write("Comments:\n") --- 196,220 ---- def ret(select=None): if not select: select = lambda x: True ! for abspath in git_file_list(parent, paths): ! path = relpath(abspath, '.') try: ! res = git("diff %s HEAD %s" % (parent, path)) except GitError, e: ! # This ignores all the errors that can be thrown. Usually, this ! # means that git returned non-zero because the file doesn't ! # exist, but it could also fail if git can't create a new file ! # or it can't be executed. Such errors are 1) unlikely, and 2) ! # will be caught by other invocations of git(). continue empty = not res.readline() ! if (os.path.isfile(path) and not empty and ! select(path) and not exclude(abspath)): ! yield path return ret def comchk(root, parent, flist, output): output.write("Comments:\n")