aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
Commit message (Collapse)AuthorAgeFilesLines
* Merged Gianluca's html output branch.W. Trevor King2009-08-071-0/+587
|\ | | | | | | | | | | | | | | | | | | | | | | Changes to merge with my branch: * Added some reference to "be html" or "becommands/html.py" in his new bugs' summaries. Bug titles should make clear to which aspect of our growing repository they refer. * Fixed unittests in becommands/html.py. * execute() kwarg "test"->!"manipulate_encodings * bugdir.simple_bug_dir() -> bugdir.SimpleBugDir() * bd.cleanup() at end of unittests
| * Sort bugs in HTML output.W. Trevor King2009-08-071-1/+1
| |
| * XHTML attribute values should be strings, and cellspacing not allowed in tr.W. Trevor King2009-08-071-8/+8
| |
| * Escape HTML entities (e.g. & and @) in HTML outputW. Trevor King2009-08-071-25/+33
| |
| * XHTML tags must be closed (e.g. <br />, not <br>)W. Trevor King2009-08-071-2/+2
| |
| * XHTML attribute values should be strings.W. Trevor King2009-08-071-1/+1
| |
| * Protect bug html from libbe.settings_object.EMPTYW. Trevor King2009-08-071-8/+12
| |
| * Added DOCTYPE to detail html as wellW. Trevor King2009-08-071-0/+2
| |
| * Respect bugdir's encoding in html generationW. Trevor King2009-08-071-7/+7
| |
| * Added DOCTYPE and post-</div> endlinesW. Trevor King2009-08-071-2/+4
| |
| * Improved threaded comment handling.W. Trevor King2009-08-071-43/+31
| | | | | | | | | | | | | | | | | | The previous method only grabbed first line of a comment. The new approach replaces the messy Comment->string->parse->html with Comment->html. Also replaced all open()s with codecs.open to allow for non-ASCII output. Alphabetized the non libbe imports while I was adding codecs.
| * Adjusted help/doc strings in becommands/html.pyW. Trevor King2009-08-071-3/+4
| |
| * - closed bugs f77, 2b8 d8dGianluca Montecchi2009-08-041-61/+66
| | | | | | | | - some changes to the css and to the html layout
| * Fixed width and indexGianluca Montecchi2009-08-031-6/+13
| |
| * Closed bug f77, minox fix to layoutGianluca Montecchi2009-07-311-6/+4
| |
| * Moved all the implementation into the html.py fileGianluca Montecchi2009-07-272-358/+435
| | | | | | | | Implemented the creation of the index for active and inactive bugs, with detail for earch of them
| * Initial implementation of the comments exportGianluca Montecchi2009-07-211-7/+11
| |
| * implemented the detail file and fixed the list of active bugGianluca Montecchi2009-07-212-30/+105
| |
| * Created the indexGianluca Montecchi2009-07-192-75/+72
| |
| * Changed the index layoutgianluca2009-07-101-160/+24
| |
| * Added the last 10 bug open listgianluca2009-07-092-34/+81
| |
| * Initial implementation of the html repository export.gianluca2009-07-042-0/+502
| | | | | | | | Creation of the index file
* | Ssupport for UTF-8 in "be comment" calls to EDITOR/VISUAL.W. Trevor King2009-08-031-1/+0
| |
* | Added dependency tree display with "be depend -t DEPTH BUG-ID".W. Trevor King2009-08-011-2/+56
| | | | | | | | | | | | Should probably be a directed graph, since people might not make tree-like dependency graphs. Cyclic graphs seem unlikely, though, so a tree only risks redundant bug entries.
* | Added one-way-link repair.W. Trevor King2009-08-011-7/+59
| |
* | Added two-way dependency links.W. Trevor King2009-08-011-22/+159
| | | | | | | | Still need to implement and test one-way-link repair.
* | Now becommands.new's unittest cleans up after itself.W. Trevor King2009-07-311-1/+1
| |
* | Improved unittest cleanup by adding BugDir.cleanup().W. Trevor King2009-07-3118-20/+39
| | | | | | | | | | | | | | | | Also simple_bug_dir -> SimpleBugDir class, which allows me to add utility.Dir cleanup to SimpleBugDir.cleanup(). Still having a bit of trouble with the becommand.new tests due to bugdir loading though...
* | Merged interactive email interfaceW. Trevor King2009-07-2919-113/+514
|\ \
| * | Added default to settings_object.versioned_property's change_hook_property.W. Trevor King2009-07-271-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now change_hook properties handle defaults, which allows them to avoid an initial None -> default save hook trigger. Removed the now-redundant read-only mode business in becommands/diff.py.
| * | Put bd into read-only mode in becommands/diff.py.W. Trevor King2009-07-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Otherwise comment comparison reads were triggering notice of the None -> EMPTY transition in comment.extra_strings, which was causing a write to disk. This trigger is probably occuring in Bug and BugDir too. Perhaps I should just remove the trigger...
| * | Major rewrite of libbe.diff introduces DiffTree and Diff classes.W. Trevor King2009-07-271-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Renamed Comment.From and .time_string to .author and .date respectively.W. Trevor King2009-07-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now they conform to the libbe.settings_object.setting_name_to_attr_name() standard. I fixed the references I found in becommands/comment.py interfaces/xml/be-mbox-to-xml interfaces/xml/be-xml-to-mbox but there may have been some references or files that slipped through.
| * | "be diff" now compares agains the last commit (for versioning VCSs).W. Trevor King2009-07-231-0/+2
| | | | | | | | | | | | This is the default behaviour of most of the VCSs own diff commands.
| * | Added Tree types and get_bugdir_subscribers to becommands/subscribe.py.W. Trevor King2009-07-231-83/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Tree subclass SubscriptionType may be a few more lines to setup, but they should be really easy to extend and will automatically keep the longhelp and type handling in sync. An example extension for bugdir types would be all -> assigned -> <user> to subscribe only to bugs being assigned to the specified user. You'd have to loosen the currently strict InvalidType checking to make that work, but the current type-tree handling would be up to the task. Also a bit of reorganizing to hide the private functions.
| * | Merged libbe.diff upgrades and libbe.tree.Tree.has_descendant from be.wtk-rr.W. Trevor King2009-07-232-9/+16
| |\ \ | | | | | | | | | | | | Also pulls "show referenced text" fix to "be comment".
| * | | Added becommands/subscribe.py to manage subscription list.W. Trevor King2009-07-221-0/+237
| | | |
| * | | Merged assorted changes from be.wtk-rr for BugDir.extra_strings.W. Trevor King2009-07-2113-29/+28
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other highlights: * be show --no-comments * Improved *.sync_with_disk. * Improved be-mbox-to-xml.
| * \ \ \ Merged "be commit --allow-empty from be.wtk-rr"W. Trevor King2009-07-191-3/+12
| |\ \ \ \
| * \ \ \ \ Merged becommands/commit.py addition from be.wtk-rr.W. Trevor King2009-07-191-0/+68
| |\ \ \ \ \
| * \ \ \ \ \ Merged some bugfixes from be.wtk-rrW. Trevor King2009-07-181-0/+1
| |\ \ \ \ \ \
| * | | | | | | Renamed test->manipulate_encodings in becommands.*.execute.W. Trevor King2009-07-1618-90/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reminder from my initial libbe/encoding.py commit: Because of the stdout replacement, the doctests executes now need an optional 'test' argument to turn off replacement during the doctests, otherwise doctest flips out (since it had set up stdout to catch output, and then we clobbered it's setup). I'm also trying to catch stdout/stderr from be-handle-mail, and I ran into the same problem. It took me a bit to remember exactly what "test" was supposed to do, so I thought I'd make the argument name more specific. If you need other changes when running in "test" mode, you'll have to add other kwargs.
| * | | | | | | Added --author and --alt-id to "be comment".W. Trevor King2009-07-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You could already add this info via the --xml input, now you can do it from the command line too.
* | | | | | | | Added clean messages on bug_from_shortname failure.W. Trevor King2009-07-2912-17/+17
| |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | So user's don't get confused.
* | | | | | | Added bugdir setting comparision to libbe.diff.W. Trevor King2009-07-231-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed libbe.diff.diff -> bug_diffs, since it doesn't compare bugdirs. Load comments before bug comparision so cmp_comments will see them. Use .settings_properties rather than static lists to create attribute lists for change_lines(). Removed trailing endline from becommands/diff.py output.
* | | | | | | Fixed unrecognized "Test" typo in becommands/comment.py.W. Trevor King2009-07-231-1/+1
| | | | | | |
* | | | | | | Show text of comment's reference in notes when spawning EDITOR.W. Trevor King2009-07-221-2/+17
| |_|_|_|/ / |/| | | | |
* | | | | | Added "--no-comments" to "be show".W. Trevor King2009-07-211-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also moved the XML-header line to the top of the argument loop, since there should only be one. We're still missing global tags wrapping the whole thing though... Also set options.XML default to False. It had been defaulting to None, which was breaking the non-XML newline-adding check.
* | | | | | "be comment --xml" now saves the comments (again).W. Trevor King2009-07-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are generated in memory (from_disk defaults to False) 133: new = comment.Comment(bug) With the leaner saving since I started trusting sync_with_disk, they were no longer making it to disk. Easily fixed with an explicit save once you've got them all set up.
* | | | | | Touched up becommands/diff.py's help message.W. Trevor King2009-07-211-3/+4
| | | | | |