The input line is printed in debug levels >= 4. If it includes
the newline we read from stdin, debug messages include empty
lines, so this should keep the debug output a bit more compact.
utility:
- "compact mode": generate a compact report for commit logs
- "patch mode": the long awaited ``patch preview'' mode :) (supports
both cvs and svn)
- "picky mode": a few enhancements for creating more reasonable reports
(enabled by default, but one can turn them off)
Reviewed by: keramida
Approved by: keramida
from preparsed human-readable output to printing a raw Python
tuples for each flist input file. Manolis has post-processing
tools that can easily use this format, so this makes life easier
for him.
It's to return a pathname that doesn't exist, so if it contains a
'/' character it's probably a valid path with a small typo. Let
the rest of the script handle its non-existence, which it already
does fine.
Instead of reporting all the files of our input file list, add a
few checks in checkinfo() to report only the files that may be of
interest to translators looking for something cool to do.
documentation project (and anyone else interested to use it).
In the translated files, we have added special `tags' some time
in the past, using the format:
%SOURCE% en_GR.ISO8859-1/articles/foo/file.sgml
%SRCID% 1.5
to denote that this translation was based on revision 1.5 of the
file referenced in `%SOURCE%'.
The `checkupdate' utility makes parsing and checking of these
tags easier. It expects to receive a list of files to check in
standard input, so it can be run by typing:
find el_GR.ISO8859-7 | checkupdate
This should report in standard output something like:
: el_GR.ISO8859-7/articles/compiz-fusion/Makefile rev. 1.1
: 1.1 -> 1.1 en_US.ISO8859-1/articles/compiz-fusion/Makefile
:
: el_GR.ISO8859-7/articles/compiz-fusion/article.sgml rev. 1.1
: 1.3 -> 1.5 en_US.ISO8859-1/articles/compiz-fusion/article.sgml
We will keep extending the `checkupdate.py' script to add more
features, like a "patch preview" mode. The version committed
here works well enough for now, and it already shows a lot of
files that we have to update in el_GR.ISO8859-7 :)
Inspired by: pgj's shell based version of `checkupdate'