diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-27 05:14:49 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-27 05:14:49 -0400 |
commit | e21a427afbc7369cfa3a3f786e51aaa1e3e01999 (patch) | |
tree | 8a7ba397e499b20ca0ebdd2535e2d8c6b6fc86c7 /becommands/list.py | |
parent | 58e2b9fe7a13e7cd99e085059867453496712593 (diff) | |
download | bugseverywhere-e21a427afbc7369cfa3a3f786e51aaa1e3e01999.tar.gz |
Major rewrite of libbe.diff introduces DiffTree and Diff classes.
To make the interface proposed by becommands/subscribers.py easier to
implement, I've moved the libbe.diff functionality into classes. Now
it should be easy two tweak the output as desired by subclassing these
classes. The basic idea is that Diff.report_tree() generates a
diff_tree tree of changes between two bugdirs, where diff_tree is some
subclass of DiffTree. Each type of change has a default .*_string()
method producing a string summary of the change. DiffTree.report()
moves through and generates a report by joining all those summary
strings to a single root, and DiffTree.report_string() serialized the
report to produce e.g. the output of becommands/diff.py.
Diffstat (limited to 'becommands/list.py')
0 files changed, 0 insertions, 0 deletions