aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
Commit message (Collapse)AuthorAgeFilesLines
* BugDir.list_uuids() -> BugDir.uuids()W. Trevor King2009-11-282-2/+2
|
* Added restrict_file_access to becommands' execute() args.W. Trevor King2009-11-2123-23/+27
| | | | | | | + associated adjustments in other files. See cmdutil.restrict_file_access.__doc__ for an explanation of the security hole this closes.
* Adjusted `be import-xml` to properly handle croot_bug==None.W. Trevor King2009-11-211-26/+31
| | | | | | If there aren't any root comments, then the user needn't specify --comment-root, in which case croot_bug will be None and we want to skip all the croot processing.
* `be email-bugs` now uses `be show` internals to produce consistent XML.W. Trevor King2009-11-213-66/+78
| | | | | | | | Broke the bulk of show.py out into new function show.output(), which is used by both show.py and email_bugs.py to reduce duplication of effort and increase consistency of the XML. Also a few relevant help string updates.
* Upgraded `be show --xml` to new <be-xml> format.W. Trevor King2009-11-212-41/+111
|
* Broke `be comment --xml` out and extended into `be import-xml`.W. Trevor King2009-11-2114-99/+285
| | | | | | | | | | | | | | | | | | | | | | | It should currently do everything that `be comment --xml` did, but it still has a way to go before it lives up to it's longhelp string, mostly figuring out bug/comment merging. The allowed XML format also changed a bit, becoming a bit more structured. cmdutil.bug_from_shortname() renamed to cmdutil.bug_from_id(). New functions cmdutil.parse_id() and cmdutil.bug_comment_from_id(). Additional doctests in libbe.comment.Comment.comment_shortnames() to show example output if bug_shortname==None. Brought be-xml-to-mbox and be-mbox-to-xml up to speed on the current <be-xml>-rooted format. * Added <extra-string> handling to their comment handling. * Moved extra strings from email bodies to X-Extra-String headers (some comment bodies are not text, and we should keep the estr location consistent between bugs and comments.)
* Fix typo in becommands.init's doctestW. Trevor King2009-11-201-0/+1
|
* Adjusted test.py to use an installed vcs by default.W. Trevor King2009-11-201-7/+6
| | | | | | | | | Protects agaist the off chance that the user doesn't have Arch (tla) installed ;). Changed Arch.name from "Arch" to "arch" so that each VCSs .name matches the module name. This allows us to use vcs.VCS_ORDER (a list of module names) to set up the allowed values of BugDir.vcs_name.
* Added becommands/email_bugs.pyW. Trevor King2009-11-201-0/+231
| | | | | | This send a list of bugs in a single email off to be processed by be-handle-mail. Of course, be-handle-mail doesn't yet handle the [be-bug:xml] format that email_bugs.py creates. On to that now...
* Removed superfluous 'import time' from becommands/commit.py doctest.W. Trevor King2009-11-201-1/+1
|
* Ran the new update_copyright.pyW. Trevor King2009-11-1917-9/+22
|
* - Merged Trevor branchGianluca Montecchi2009-10-221-83/+93
|\ | | | | | | - Reapplied the fix for subdirs
| * Merged Gianluca's recent `be html` work.W. Trevor King2009-10-211-49/+97
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added --export-template and --export-template-dir * Fixed index page row colors. * Fixed --index-header Also a bit of tightening on my own: * Inspired by ._write_file, wrote ._read_file and .make_dir. * Wrapped some lines to stay under 80 characters, * Stripped trailing whitespace.
| * | Save non-text/ comments as separate files. Inline images.W. Trevor King2009-10-201-29/+57
| | |
| * | Pass content_type to Comment.new_reply() to fix error adding non-text/ commentsW. Trevor King2009-10-201-3/+1
| | |
| * | Restructured becommands/html to make templating more flexible + general ↵W. Trevor King2009-10-201-437/+363
| | | | | | | | | | | | cleanups.
| * | General cleanup of becommands/html.pyW. Trevor King2009-10-191-172/+141
| | |
| * | Merged Gianluca's html becommand with templates.W. Trevor King2009-10-191-367/+415
| |\ \
| * | | Moved from *.__del__() to exclusive use of *.cleanup().W. Trevor King2009-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *.__del__() is run some unspecified time after the refcount for an object is reduced to zero. Sometimes that means that the rest of the world has already been deallocated, which makes life difficult, especially when Python won't attempt to construct stack traces inside *.__del__(). We were always (hopefully ;) calling del(*) anyway, so we just replace those calls with *.cleanup()
| * | | Fixed invalid TAG error in becommands.subscribe.get_subscribers()W. Trevor King2009-09-261-0/+2
| | | | | | | | | | | | | | | | | | | | Check that the string has the right tag before attempting to parse it :p.
| * | | Added -a and -l options to be subscribe.W. Trevor King2009-09-261-11/+29
| | | | | | | | | | | | | | | | | | | | It's useful to have some way to see the current subscription status from the command line ;).
| * | | Use Bug.active to decide active status in becommands/html.pyW. Trevor King2009-09-231-1/+1
| | | |
| * | | RCS -> VCS, BUGDIR_DISK_VERSION -> v1.2W. Trevor King2009-08-314-25/+25
| | | |
| * | | Oops, update comment.From->author and .time_string->.date in becommands/html.pyW. Trevor King2009-08-081-2/+2
| | | |
| * | | Updated AUTHORS and copyright info for becommands/html.py.W. Trevor King2009-08-071-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adjusted update_copyright.sh to ignore Gianluca's temporary use of gianluca <gian@galactica> since he's now using Gianluca Montecchi <gian@grys.it> on becommands/html.py.
| * | | 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
| | | | |
| * | | | 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.