aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
Commit message (Collapse)AuthorAgeFilesLines
* be --dir DIR COMMAND now roots the bugdir in DIR without changing directories.W. Trevor King2009-12-0624-57/+104
| | | | | | | | | | | | | | | | | Previously, for the directory structure A |-- X `-- Y You could do something like A$ be --dir X diff --dir ../Y Now it's A$ be --dir X diff --dir Y The --root option to `be init` has been removed as redundant. Replace calls like be init --root DIR with be --dir DIR init
* Set BugDir(root=X) instead of os.chdir(X) in W. Trevor King2009-12-061-4/+2
|
* becommands.target.bug_target(TARGET-BUG) now returns TARGET-BUGW. Trevor King2009-12-061-0/+2
|
* Updated becommands/due.py copyright.W. Trevor King2009-12-061-1/+15
|
* Added becommands/due.py to manage bug due dates.W. Trevor King2009-12-061-0/+92
| | | | | | | | | | | | | | | This fulfills the following part of 22b:7 * "due_by" We could add "due-by" to Bug.extra_strings as well, so that anyone could set due dates for any issue they wanted. Currently there's not much going on, but perhaps other people will have ideas for useful extensions. Maybe be due --sort BUG-ID [BUG-ID ...] or be --due-in-days 7
* `be target` gains --resolve and loses --list.W. Trevor King2009-12-051-29/+98
| | | | `be target` now works with bug-style targets.
* Docstring clarification in becommands.depend.get_blocked_by()W. Trevor King2009-12-051-1/+1
|
* Removed target stuff from becommands/list.py and tweaked options.W. Trevor King2009-12-052-37/+26
| | | | | Now --status, --severity, and --assigned all use cmdutil.select_values() for nice whitelist/blacklist selection.
* Moved becommands.depend._allowed_values() to cmdutil.select_values()W. Trevor King2009-12-051-48/+11
| | | | | | | | | | I like this code, and I want to use it for other places, e.g. `be list`. Also renamed depend options --limit-severity and --limit-status to --severity and --status
* Remove Bug.target references from several becommands (all but target.py).W. Trevor King2009-12-054-7/+4
|
* Added --limit-status and --limit-severity to `be depend'.W. Trevor King2009-12-051-12/+79
| | | | | Currently only effective in tree mode, but that's where it matters most.
* Fixed shortname -> bugname in becommands/show.py.W. Trevor King2009-12-051-1/+1
| | | | | | | | | | | | | | | Fixes wking@thor:be.target-as-bug$ be show 22b:7 Traceback (most recent call last): File "/home/wking/bin/be", line 65, in <module> sys.exit(cmdutil.execute(args[0], args[1:])) File "/home/wking/src/fun/be/be.target-as-bug/libbe/cmdutil.py", line 87, in execute restrict_file_access=restrict_file_access) File "/home/wking/src/fun/be/be.target-as-bug/becommands/show.py", line 82, in execute print output(args, bd, as_xml=options.XML, with_comments=options.comments) File "/home/wking/src/fun/be/be.target-as-bug/becommands/show.py", line 174, in output lines.append(comment.string(shortname=shortname)) NameError: global name 'shortname' is not defined
* Cleanup Dir in becommands/init.py doctest.W. Trevor King2009-12-051-0/+1
|
* Merged be.diff-subscribeW. Trevor King2009-12-052-126/+92
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights: * changes to `be diff` * exits with an error if required revision control is not possible. Previously it printed a message, but exitted with status 0. * removed options --new, --removed, --modified, --all * added options --uuids, --subscribe * New method diff.Diff.full_report() allows fast generation of similar report_tree()s via diff.DiffTree.masked. * New method diff.subscriptions_from_string() for consistent subscription string parsing. * clean up be-handle-mail.Message.subscriber_emails() with diff.Diff.report_tree(subscriptions) * hardcoded 'DIR' replaced with diff.BUGDIR_ID * assorted cleanups and bugfixes
| * More 'DIR'->diff.BUGDIR_ID updatesW. Trevor King2009-12-052-8/+8
| |
| * Created diff.subscriptions_from_string()W. Trevor King2009-12-051-11/+5
| |
| * Added --subscribe option to `be diff`W. Trevor King2009-12-051-9/+25
| |
| * Added subscriptions option to diff.Diff.report_tree().W. Trevor King2009-12-051-2/+3
| | | | | | | | | | | | Also added diff.BUGDIR_ID to avoid lots of magic 'DIR' definitions, and added diff.Subscription class to make the old (id, type) tuples a bit more elegant.
| * Moved subscription types from becommands/subscribe.py to libbe/diff.py.W. Trevor King2009-12-051-69/+36
| |
| * Replaced `be diff` options --new, --removed, --modified, and --all with --uuids.W. Trevor King2009-12-051-22/+7
| | | | | | | | | | | | | | We'll be adding a --subscribe option which will select the bugs/changes we're interested in, which deprecates the selection portion of the old options. The new --uuids just selects the "bug uuid" output over the default "change summary" output.
| * `be diff` raises UsageError if required revision control not possible.W. Trevor King2009-12-051-34/+37
| | | | | | | | It had previously printed an message and exitted without error.
* | Set boolean options default to False in becommands/list.pyW. Trevor King2009-12-051-1/+1
|/ | | | | | | | Otherwise they default to None. It doesn't matter at the moment, since all the comparisons seem to be if options.XYZ == True: but this protects against confusion in the future if someone tries if options.XYZ == False:
* Added --dir option to `be diff'.W. Trevor King2009-12-041-3/+17
| | | | | | | | | | | | | Now you can compare two repositories: be -d branchA diff -d branchB or branchA$ be diff -d ../branchB which is helpful for VCSs like bzr that lack cross-branch revid visibility. Git users can still use branchA$ be diff REVID where REVID is a commit from any branch in the repo. This new functionality acts like a BE counterpart to `bzr missing DIR'.
* Added libbe.TESTING (defaults to False).W. Trevor King2009-12-031-124/+128
| | | | | | | | | | | | | | | | | | | | This flag allows us to skip unittest and testsuite declaration if we woln't need them. It speeds up simple be calls a suprising amount. With Testing=True (the old behavior): wking@thor:be.wtk$ time ./be > /dev/null real 0m0.393s user 0m0.340s sys 0m0.048s With TESTING=False (the new behavior): be.wtk$ time ./be > /dev/null real 0m0.216s user 0m0.152s sys 0m0.064s This adjustment was inspired by Jakub Wilk's Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559295
* Added copyright blurbs to __init__.py files.W. Trevor King2009-12-031-0/+16
|
* Fixed import_xml.py to live up to its longhelp description.W. Trevor King2009-11-301-27/+188
| | | | Also added LonghelpTestCase to prove it.
* 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
| | | |