aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui
Commit message (Collapse)AuthorAgeFilesLines
* Ran update_copyright.pyW. Trevor King2010-06-226-75/+77
|
* Use os.path.join in libbe.storage.util.config.path.wking2010-06-221-1/+3
| | | | | | | | Versus previous hardcoded "~/.bugs_everywhere". Also improve docstrings for * libbe.storage.util.config.path * libbe.ui.util.user.get_user_id
* Use email.utils.formataddr/parseaddr to generate/parse user IDsW. Trevor King2010-02-071-29/+60
|
* Clearer UnicodeDecodeError message in command_line.dispatch().W. Trevor King2010-02-011-0/+8
| | | | | See #bea/e30# ("Where should the vcs-name and encoding configuration options live?") for details.
* Fix editor spawning on null-string EDITOR and VISUAL.W. Trevor King2010-01-291-4/+3
| | | | | $ EDITOR= VISUAL= python -c 'import os; import sys; print os.environ' {..., 'EDITOR': '', ..., 'VISUAL': '', ...}
* Strip footers (signatures) in be-mail-to-xmlW. Trevor King2010-01-201-1/+1
|
* Fixed `be help` (used to raise NotImplementedError)W. Trevor King2010-01-201-3/+11
|
* Add better help message on COMMAND-less be callW. Trevor King2010-01-201-1/+8
|
* Added libbe.command.serve and libbe.storage.http for HTTP backend.W. Trevor King2010-01-011-1/+1
| | | | | | | | | | Now the following works: some-BE-dir$ ./be serve $ ./be --repo http://localhost:8000 list I haven't come up with a clean idea for testing this yet, so other commands may be broken, but once we get the testing working, it shouldn't be too hard to get everything working over HTTP :).
* Updated copyright informationW. Trevor King2010-01-016-6/+48
|
* Merged be.restructure, major internal reorganization.W. Trevor King2009-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a bunch of classes to make the commands, user interfaces, and storage backends more abstract and distinct. This should make it much easier to extend and maintain BE. Features: * Directory restructured: becommands/ -> libbe/commands submods sorted by functionality. * Lots of new classes: Option, Argument, Command InputOutput, StorageCallbacks, UserInterface Storage * Consolidated ID handling in libbe.util.id * Transitioned VCS backends for Python-based VCSs from subprocess calss to internal python calls. Plus the user-visible changes: * New bugdir/bug/comment ID format replaces old bug:comment format. * Deprecated support for `be diff` on Arch and Darcs <= 2.3.1. A new backend abstraction (Storage) makes the former implementation ungainly. * Improved command completion. * Removed commands close, open, email_bugs, * Flipped some arguments `be assign BUG-ID [ASSIGNEE]` -> `be status ASSIGNED BUG-ID ...` `be severity BUG-ID SEVERITY` -> `be severity SEVERITY BUG-ID ...` `be status BUG-ID STATUS` -> `be status STATUS BUG-ID ...` In the merge: * Added 'commit' to list of pagerless commands. * Updated doc/README.dev See #bea86499-824e-4e77-b085-2d581fa9ccab/1100c966-9671-4bc6-8b68-6d408a910da1# for a discussion of why the changes were made and some of the difficulties en-route.
* Use fragment in base command completion + command io fixups.W. Trevor King2009-12-311-2/+5
|
* Added UserInterface and other improved abstractions for command handlingW. Trevor King2009-12-311-35/+43
|
* Removed libbe/ui/base.py. Basic UI definitions are in libbe/command/base.py.W. Trevor King2009-12-311-1/+0
|
* Don't worry about whitespace in `be --help`W. Trevor King2009-12-291-1/+1
|
* Remove libbe.ui.util.cmdutilW. Trevor King2009-12-291-129/+0
| | | | All of its functionality has moved off into more focused modules.
* Fixed up the completion helpers in libbe.command.utilW. Trevor King2009-12-291-4/+9
| | | | | | | | | | This entailed a fairly thorough cleanup of libbe.util.id. Remaining unimplemented completion helpers: * complete_assigned() * complete_extra_strings() Since these would require scanning all (active?) bugs to compile lists, and I was feeling lazy...
* Allow external use of Command.usage() and use CmdOptionParser.set_usage()W. Trevor King2009-12-281-1/+3
| | | | | | | | | | | | | This fixes $ python be diff -2 Usage: be [options] be: error: no such option: -2 and we now get the correct output $ python be diff -2 Usage: be diff [options] [REVISION] be: error: no such option: -2
* Restore comment stripping to libbe.ui.util.editor.editor_string()W. Trevor King2009-12-281-0/+4
|
* Don't run pager for the 'comment' command.W. Trevor King2009-12-281-7/+11
| | | | It may need access to the tty for the spawned editor.
* Moved InvalidStorageVersion from libbe.command to libbe.storageW. Trevor King2009-12-271-0/+4
| | | | | | Also added ConnectionError pretty-print to ui.command_line, storage version checking to BugDir.duplicate_bugdir(), and optional revision argument to Storage.storage_version().
* Fixed libbe.command.diff + ugly BugDir.duplicate_bugdir implementationW. Trevor King2009-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | duplicate_bugdir() works, but for the vcs backends, it could require shelling out for _every_ file read. This could, and probably will, be horribly slow. Still it works ;). I'm not sure what a better implementation would be. The old implementation checked out the entire earlier state into a temporary directory pros: single shell out, simple upgrade implementation cons: wouldn't work well for HTTP backens I think a good solution would run along the lines of the currently commented out code in duplicate_bugdir(), where a VersionedStorage.changed_since(revision) call would give you a list of changed files. diff could work off of that directly, without the need to generate a whole duplicate bugdir. I'm stuck on how to handle upgrades though... Also removed trailing whitespace from all python files.
* Transitioned target to Command-formatW. Trevor King2009-12-151-0/+2
|
* Transitioned tag to Command-formatW. Trevor King2009-12-151-1/+1
|
* Transitioned status to Command-formatW. Trevor King2009-12-141-5/+9
|
* Transitioned severity to Command-format, also added Command._get_*()W. Trevor King2009-12-142-31/+6
| | | | | | | | | | | | | | The old .requires_* thing was rediculous. The new ._get_*() callbacks allow the caller to provide a means for getting the expensive structures, which the command can use, or not, as required. This will also make it easier to implement the completion callbacks. The callbacks should probably have matching .set_*() methods, to avoid the current cache tweaking cmd._storage = ... etc. But that can wait for now...
* Transitioned help to Command-formatW. Trevor King2009-12-141-0/+1
|
* Transitioned import_xml to Command-formatW. Trevor King2009-12-141-1/+1
|
* Transitioned comment to Command formatW. Trevor King2009-12-142-18/+31
|
* Transitioned init to Command formatW. Trevor King2009-12-142-5/+7
|
* Added parse_user() calls to AssignW. Trevor King2009-12-141-4/+0
|
* Transitioned assign to Command formatW. Trevor King2009-12-141-4/+5
|
* More fixes for libbe.storage.vcs.hg + .git transition.W. Trevor King2009-12-131-6/+6
|
* Rearrange libbe.ui.command_line.CmdOptionParser._add_option() for Python 2.5W. Trevor King2009-12-131-14/+15
| | | | | | | | | | | | | | Python 2.6 doesn't mind, but 2.5 doesn't like kwargs after a * expansion: $ ./be list Traceback (most recent call last): File "./be", line 5, in <module> import libbe.ui.command_line File "/home/wking/src/fun/be/be.restructure/libbe/ui/command_line.py", line 63 *opt_strings, action='callback', dest=dest, ^ SyntaxError: invalid syntax
* Converted libbe.storage.vcs.base to new Storage format.W. Trevor King2009-12-132-13/+25
|
* Moved be to libbe.ui.command_line and transitioned to Command format.W. Trevor King2009-12-123-108/+271
|
* Added libbe.ui.util.user for managing user ids.W. Trevor King2009-12-122-23/+84
|
* Moved command completion from libbe.ui.util to libbe.command.utilW. Trevor King2009-12-121-68/+0
|
* Added libbe.command.base (with Command class) and moved list command to new ↵W. Trevor King2009-12-125-123/+115
| | | | format.
* Initial directory restructuring to clarify dependenciesW. Trevor King2009-12-073-0/+534