be.git
15 years agoRemoved unused libbe/restconvert.py and fixed a typo in README.dev
W. Trevor King [Fri, 19 Jun 2009 16:06:32 +0000 (12:06 -0400)]
Removed unused libbe/restconvert.py and fixed a typo in README.dev

15 years agoMerge from main branch.
W. Trevor King [Fri, 19 Jun 2009 15:09:03 +0000 (11:09 -0400)]
Merge from main branch.

15 years agolibbe/encoding.py
W. Trevor King [Fri, 19 Jun 2009 15:06:59 +0000 (11:06 -0400)]
libbe/encoding.py

15 years agoFollow existing docstring whitespace convention.
John Doe [Mon, 15 Jun 2009 10:13:22 +0000 (20:13 +1000)]
Follow existing docstring whitespace convention.

15 years agoDistinguish tests for VCS which can't handle an uninitialised identity.
John Doe [Sun, 14 Jun 2009 07:27:18 +0000 (17:27 +1000)]
Distinguish tests for VCS which can't handle an uninitialised identity.

15 years agoRefactor mega-testcases into separate true-or-false testcases.
John Doe [Sun, 14 Jun 2009 07:24:29 +0000 (17:24 +1000)]
Refactor mega-testcases into separate true-or-false testcases.

15 years agoMake RCS testcase subclasses dynamically.
John Doe [Sun, 14 Jun 2009 04:34:11 +0000 (14:34 +1000)]
Make RCS testcase subclasses dynamically.

15 years agoUse a more general regex to test GIT commits; GIT's output has changed.
Chris Ball [Sat, 13 Jun 2009 12:43:28 +0000 (08:43 -0400)]
Use a more general regex to test GIT commits; GIT's output has changed.

15 years agoAdded a license file (MIT/X11).
Steve Losh [Mon, 23 Mar 2009 21:14:59 +0000 (17:14 -0400)]
Added a license file (MIT/X11).

15 years agoAdded tag alpha for changeset abfe7aa4bdf3
Steve Losh [Sat, 7 Feb 2009 21:35:51 +0000 (16:35 -0500)]
Added tag alpha for changeset abfe7aa4bdf3

15 years agoTagged the alpha release, and added mroe bugs.
Steve Losh [Sat, 7 Feb 2009 21:34:23 +0000 (16:34 -0500)]
Tagged the alpha release, and added mroe bugs.

15 years agoAdded tag alpha for changeset 8d8c7f52f3af
Steve Losh [Sat, 7 Feb 2009 21:34:08 +0000 (16:34 -0500)]
Added tag alpha for changeset 8d8c7f52f3af

15 years agoBug changes.
Steve Losh [Sat, 7 Feb 2009 18:38:05 +0000 (13:38 -0500)]
Bug changes.

15 years agoGot rid of the stupid config file.
Steve Losh [Sat, 7 Feb 2009 17:51:40 +0000 (12:51 -0500)]
Got rid of the stupid config file.

15 years agoChanged some bugs around.
Steve Losh [Sat, 7 Feb 2009 17:42:23 +0000 (12:42 -0500)]
Changed some bugs around.

15 years agoApparently not enough though.
Steve Losh [Sat, 7 Feb 2009 17:39:45 +0000 (12:39 -0500)]
Apparently not enough though.

15 years agoRefactored more into the web interface.
Steve Losh [Sat, 7 Feb 2009 17:39:19 +0000 (12:39 -0500)]
Refactored more into the web interface.

15 years agoForgot to rearrange the script.
Steve Losh [Sat, 7 Feb 2009 17:35:37 +0000 (12:35 -0500)]
Forgot to rearrange the script.

15 years agoForgot some imports.
Steve Losh [Sat, 7 Feb 2009 17:34:51 +0000 (12:34 -0500)]
Forgot some imports.

15 years agoI really need to learn more about Python packages.
Steve Losh [Sat, 7 Feb 2009 17:33:28 +0000 (12:33 -0500)]
I really need to learn more about Python packages.

15 years agoPulled out the web interface.
Steve Losh [Sat, 7 Feb 2009 17:31:02 +0000 (12:31 -0500)]
Pulled out the web interface.

15 years agoRemoved the debug print.
Steve Losh [Sat, 7 Feb 2009 17:27:02 +0000 (12:27 -0500)]
Removed the debug print.

15 years agoIt works! Just need to debug one more thing.
Steve Losh [Sat, 7 Feb 2009 17:25:21 +0000 (12:25 -0500)]
It works!  Just need to debug one more thing.

15 years agoI think I may have it figured out.
Steve Losh [Sat, 7 Feb 2009 17:23:23 +0000 (12:23 -0500)]
I think I may have it figured out.

15 years agoI has a module!
Steve Losh [Sat, 7 Feb 2009 17:20:59 +0000 (12:20 -0500)]
I has a module!

15 years agoTesting out some more packaging issues.
Steve Losh [Sat, 7 Feb 2009 17:20:22 +0000 (12:20 -0500)]
Testing out some more packaging issues.

15 years agoTesting out some packaging issues.
Steve Losh [Sat, 7 Feb 2009 17:17:22 +0000 (12:17 -0500)]
Testing out some packaging issues.

15 years agoStarting packaging up.
Steve Losh [Mon, 2 Feb 2009 02:19:59 +0000 (21:19 -0500)]
Starting packaging up.

15 years agoAdded two more bugs.
Steve Losh [Mon, 2 Feb 2009 01:12:59 +0000 (20:12 -0500)]
Added two more bugs.

15 years agoBug assignment.
Steve Losh [Mon, 2 Feb 2009 01:06:17 +0000 (20:06 -0500)]
Bug assignment.

15 years agoChanges before Laura checks it out.
Steve Losh [Mon, 2 Feb 2009 01:01:13 +0000 (20:01 -0500)]
Changes before Laura checks it out.

15 years agoImplemented bug editing.
Steve Losh [Sun, 1 Feb 2009 23:02:31 +0000 (18:02 -0500)]
Implemented bug editing.

15 years agoGot bug detail editing working, except for the summary.
Steve Losh [Sun, 1 Feb 2009 22:28:05 +0000 (17:28 -0500)]
Got bug detail editing working, except for the summary.

15 years agoClosed the commenting bug.
Steve Losh [Sun, 1 Feb 2009 21:10:24 +0000 (16:10 -0500)]
Closed the commenting bug.

15 years agoI can has commenting!
Steve Losh [Sun, 1 Feb 2009 21:09:50 +0000 (16:09 -0500)]
I can has commenting!

15 years agoImplemented bug adding.
Steve Losh [Sun, 1 Feb 2009 20:45:52 +0000 (15:45 -0500)]
Implemented bug adding.

15 years agoAdded the links in the bug list.
Steve Losh [Sat, 31 Jan 2009 07:26:36 +0000 (02:26 -0500)]
Added the links in the bug list.

15 years agoImplemented the single bug view.
Steve Losh [Sat, 31 Jan 2009 07:24:31 +0000 (02:24 -0500)]
Implemented the single bug view.

15 years agoAdded my last name.
Steve Losh [Sat, 31 Jan 2009 05:36:04 +0000 (00:36 -0500)]
Added my last name.

15 years agoFixed a minor filter bug, more bug reports.
Steve Losh [Sat, 31 Jan 2009 05:19:57 +0000 (00:19 -0500)]
Fixed a minor filter bug, more bug reports.

Starting to plan out the alpha release mroe thoroughly.

15 years agoImplemented the status filter.
Steve Losh [Sat, 31 Jan 2009 04:53:09 +0000 (23:53 -0500)]
Implemented the status filter.

15 years agoMore minor design changes.
Steve Losh [Sat, 31 Jan 2009 04:36:31 +0000 (23:36 -0500)]
More minor design changes.

15 years agoTable striping.
Steve Losh [Sat, 31 Jan 2009 03:23:44 +0000 (22:23 -0500)]
Table striping.

15 years agoMinor changes, and added lots of bug reports.
Steve Losh [Sat, 31 Jan 2009 03:07:59 +0000 (22:07 -0500)]
Minor changes, and added lots of bug reports.

15 years agoMade it prettier, and added assignee filters.
Steve Losh [Sat, 31 Jan 2009 02:45:15 +0000 (21:45 -0500)]
Made it prettier, and added assignee filters.

15 years agoOh my god I have CSS display directives.
Steve Losh [Sat, 31 Jan 2009 01:53:41 +0000 (20:53 -0500)]
Oh my god I have CSS display directives.

15 years agoGot the layout looking pretty nice.
Steve Losh [Sat, 31 Jan 2009 00:13:56 +0000 (19:13 -0500)]
Got the layout looking pretty nice.

15 years agoMoved the layout quite a bit further.
Steve Losh [Fri, 30 Jan 2009 23:39:11 +0000 (18:39 -0500)]
Moved the layout quite a bit further.

15 years agoStarted layout work.
Steve Losh [Fri, 30 Jan 2009 22:43:07 +0000 (17:43 -0500)]
Started layout work.

15 years agoAdded a few bugs.
Steve Losh [Fri, 30 Jan 2009 03:20:29 +0000 (22:20 -0500)]
Added a few bugs.

15 years agoStarted using Bugs Everywhere to track the bugs. How appropriate.
Steve Losh [Fri, 30 Jan 2009 03:17:03 +0000 (22:17 -0500)]
Started using Bugs Everywhere to track the bugs.  How appropriate.

15 years agoGot the static serving working.
Steve Losh [Fri, 30 Jan 2009 02:41:39 +0000 (21:41 -0500)]
Got the static serving working.

15 years agoVery basic working skeleton. Gets stuff from the bug directory, renders with Jinja.
Steve Losh [Fri, 30 Jan 2009 02:31:29 +0000 (21:31 -0500)]
Very basic working skeleton.  Gets stuff from the bug directory, renders with Jinja.

15 years agoStarting off with an hgignore!
Steve Losh [Fri, 30 Jan 2009 01:54:33 +0000 (20:54 -0500)]
Starting off with an hgignore!

15 years agoXML output for "be show"
Thomas Habets [Wed, 7 Jan 2009 18:39:32 +0000 (19:39 +0100)]
XML output for "be show"

16 years agoFixed spelling mistake in test_usage.sh
W. Trevor King [Sun, 21 Dec 2008 05:35:12 +0000 (00:35 -0500)]
Fixed spelling mistake in test_usage.sh

16 years agoFixed lack of user_id caching in bugdir.BugDir
W. Trevor King [Thu, 4 Dec 2008 23:33:33 +0000 (18:33 -0500)]
Fixed lack of user_id caching in bugdir.BugDir

16 years agoClosed search bug
W. Trevor King [Thu, 4 Dec 2008 18:06:10 +0000 (13:06 -0500)]
Closed search bug

9a942b1d-a3b5-441d-8aef-b844700e1efa

Aaron says it's already implemented in the Bugs-Everywhere-Web, and
  $ be show `be list --status all --uuids` | grep -A5 -B5 XYZ
works pretty well for me on the command line.

16 years agoMerged in the successful per-tree-config branch.
W. Trevor King [Thu, 4 Dec 2008 17:42:22 +0000 (12:42 -0500)]
Merged in the successful per-tree-config branch.

16 years agoAdded per-tree default assignee option.
W. Trevor King [Thu, 4 Dec 2008 17:40:39 +0000 (12:40 -0500)]
Added per-tree default assignee option.

The new setting is currently only used when creating new bugs with
becommand/new.

16 years agoClosed a few old bugs that seem outdated/dealt with.
W. Trevor King [Thu, 4 Dec 2008 17:24:24 +0000 (12:24 -0500)]
Closed a few old bugs that seem outdated/dealt with.

16 years agoFixed missing directory error when merging comments onto a bare bug.
W. Trevor King [Thu, 4 Dec 2008 17:07:49 +0000 (12:07 -0500)]
Fixed missing directory error when merging comments onto a bare bug.

If bug_A had no comments (and so, no comment directory), changing
comment settings before saving raised missing directory errors.
save_settings had previously assumed the
 .be/bugs/XYZ/comments/
directory existed, which wasn't true for comment-less bugs.  Now it
checks, and creates the directory if necessary.

16 years agobecommands/severity and status now handle --complete appropriately.
W. Trevor King [Thu, 4 Dec 2008 16:56:34 +0000 (11:56 -0500)]
becommands/severity and status now handle --complete appropriately.

I also disabled interspersed options and arguments in
cmdutils.CmdOptionParser.  See
  http://docs.python.org/library/optparse.html
Now
  $ be severity xyz --complete
returns available severities.  It had previously returned
  --help --complete

16 years agoPer-tree status levels working.
W. Trevor King [Thu, 4 Dec 2008 16:32:57 +0000 (11:32 -0500)]
Per-tree status levels working.

16 years agoClosed 4a4609c8-1882-47de-9d30-fee410b8a802
W. Trevor King [Thu, 4 Dec 2008 15:44:29 +0000 (10:44 -0500)]
Closed 4a4609c8-1882-47de-9d30-fee410b8a802

Per-tree severity levels working.

16 years agoAdjusted becommands/list.py to use current bug severities levels.
W. Trevor King [Thu, 4 Dec 2008 15:40:24 +0000 (10:40 -0500)]
Adjusted becommands/list.py to use current bug severities levels.

16 years agobug severity verification now works with per-tree severities.
W. Trevor King [Thu, 4 Dec 2008 15:32:10 +0000 (10:32 -0500)]
bug severity verification now works with per-tree severities.

I adjusted the YAML format following
  http://pyyaml.org/ticket/11
  Unicode support
To remove '!!python/unicode' escapes and allow unicode in the output.
We can always have unicode in the output because the output is encoded
(as per the BugFile.encoding setting) before being sent to the outside
world.

16 years agoPer-tree settings now passed into bug module.
W. Trevor King [Thu, 4 Dec 2008 14:54:39 +0000 (09:54 -0500)]
Per-tree settings now passed into bug module.

becommands/severity gets the configured settings appropriately.

Todo:
  adjust setting-validation to compare against the current values.
  setup becommands/severity to --complete severities.

16 years agoAdded per-tree configurable severities.
W. Trevor King [Thu, 4 Dec 2008 14:14:01 +0000 (09:14 -0500)]
Added per-tree configurable severities.

They currently have no effect, but you can see them with
  $ be set
There's a lot of information in this one 'settings' variable.  I think
set will have to be specialized to handle arrays smoothly...

16 years agoCleaned up some older bugs.
W. Trevor King [Thu, 4 Dec 2008 13:52:23 +0000 (08:52 -0500)]
Cleaned up some older bugs.

16 years agoAdded support for bug reporter field.
W. Trevor King [Wed, 3 Dec 2008 00:23:04 +0000 (19:23 -0500)]
Added support for bug reporter field.

Closes e2f6514c-5f9f-4734-a537-daf3fbe7e9a0

16 years agoMerged decorator branch.
W. Trevor King [Wed, 3 Dec 2008 00:11:56 +0000 (19:11 -0500)]
Merged decorator branch.

16 years agoFixed comparison bug in Bug._get_time.
W. Trevor King [Wed, 3 Dec 2008 00:06:24 +0000 (19:06 -0500)]
Fixed comparison bug in Bug._get_time.

16 years agoAdded auto-completion for becommands/set property names.
W. Trevor King [Tue, 2 Dec 2008 16:12:56 +0000 (11:12 -0500)]
Added auto-completion for becommands/set property names.

16 years agoConverted Comment to the settings_object system.
W. Trevor King [Tue, 2 Dec 2008 16:06:00 +0000 (11:06 -0500)]
Converted Comment to the settings_object system.

16 years agoBug moved to the settings_object system.
W. Trevor King [Tue, 2 Dec 2008 15:39:52 +0000 (10:39 -0500)]
Bug moved to the settings_object system.

16 years agoAdded decorator-style properties to bugdir. Created settings_object module.
W. Trevor King [Tue, 2 Dec 2008 15:14:06 +0000 (10:14 -0500)]
Added decorator-style properties to bugdir.  Created settings_object module.

settings_object.SavedSettingsObject encapsulates some of the common
settings functionality in the BE BugDir, Bug, and Comment classes.
It's a bit awkward due to the nature of scoping in python subclasses,
but it's better than reproducing this code in each of the above classes.
Now I need to move Bug and Comment over to *this* system ;).

16 years agoAdded decorator-style properties to libbe/comment.py.
W. Trevor King [Mon, 1 Dec 2008 19:42:20 +0000 (14:42 -0500)]
Added decorator-style properties to libbe/comment.py.

Also some typo corrections and some reworking of bug/bugdir to better
support the lazier loading.

16 years agoFixed some erroneous "no test suite" messages in test.py.
W. Trevor King [Mon, 1 Dec 2008 19:08:59 +0000 (14:08 -0500)]
Fixed some erroneous "no test suite" messages in test.py.

16 years agoAdded libbe/properties to make property management easier.
W. Trevor King [Sat, 29 Nov 2008 04:08:10 +0000 (23:08 -0500)]
Added libbe/properties to make property management easier.

libbe/bug has been moved over to the new system.
comment and bugdir still to go.

16 years agoAdded more helpful error message for libbe modules missing test suites.
W. Trevor King [Fri, 28 Nov 2008 15:15:15 +0000 (10:15 -0500)]
Added more helpful error message for libbe modules missing test suites.

16 years agoOptimized bug loading from becommands/comment with partial-uuid matching.
W. Trevor King [Fri, 28 Nov 2008 00:35:55 +0000 (19:35 -0500)]
Optimized bug loading from becommands/comment with partial-uuid matching.

The code is a bit uglier now, but it's a good deal faster :).

16 years agoAdded becommands/comment completion.
W. Trevor King [Thu, 27 Nov 2008 16:34:44 +0000 (11:34 -0500)]
Added becommands/comment completion.

16 years agoCompletion support added to becommands/help
W. Trevor King [Thu, 27 Nov 2008 16:12:26 +0000 (11:12 -0500)]
Completion support added to becommands/help

16 years agoAdded bugid_args option to cmdutil.default_complete.
W. Trevor King [Thu, 27 Nov 2008 16:03:21 +0000 (11:03 -0500)]
Added bugid_args option to cmdutil.default_complete.

Now most of the bug-id arguments support Bash completion.  Since there
will hopefully be lots of bugs in the database, I decided to filter
the list of available bugs.  Currently, we just auto-complete active
bugs for most commands, with the exceptions of open (obviously) and
status (which needs to work on all types of bugs).

16 years agoCommand completion simplified and working for list, dummies for other cmds.
W. Trevor King [Thu, 27 Nov 2008 15:16:18 +0000 (10:16 -0500)]
Command completion simplified and working for list, dummies for other cmds.

All the other commands currently use default_complete(), which has no
effect other than catching the --complete option and effectively
aborting execution.

This closes 8e1bbda4-35b6-4579-849d-117b1596ee99

16 years agoMerged --commands and --options into --complete. Simpler that way.
W. Trevor King [Thu, 27 Nov 2008 14:34:54 +0000 (09:34 -0500)]
Merged --commands and --options into --complete.  Simpler that way.

16 years agoBasic bash completion is now supported.
W. Trevor King [Thu, 27 Nov 2008 14:26:52 +0000 (09:26 -0500)]
Basic bash completion is now supported.

I'm still working on a clean implementation though...

16 years agoFixed typo in becommands/comment help string.
W. Trevor King [Thu, 27 Nov 2008 13:06:12 +0000 (08:06 -0500)]
Fixed typo in becommands/comment help string.

16 years agoAdded --commands option to be to help with bash completion.
W. Trevor King [Thu, 27 Nov 2008 12:35:40 +0000 (07:35 -0500)]
Added --commands option to be to help with bash completion.

A'la ditz
  http://gitorious.org/projects/ditz

See also this good intro to bash completion
  http://www.debian-administration.org/articles/317

16 years agoAdded -a/n/m/r to becommands/diff.py.
W. Trevor King [Tue, 25 Nov 2008 21:45:42 +0000 (16:45 -0500)]
Added -a/n/m/r to becommands/diff.py.

16 years agoadded -u/uuids option to becommands/list
W. Trevor King [Tue, 25 Nov 2008 21:07:08 +0000 (16:07 -0500)]
added -u/uuids option to becommands/list

16 years agoAdded libbe/encoding.py to wrap input/output/file access appropriately.
W. Trevor King [Tue, 25 Nov 2008 20:47:19 +0000 (15:47 -0500)]
Added libbe/encoding.py to wrap input/output/file access appropriately.

I borrowed most of the code for this.

get_encoding() is from Trac
  http://trac.edgewall.org/browser/trunk/trac/util/datefmt.py
  format_datetime()
Trac has a BSD license
  http://trac.edgewall.org/wiki/TracLicense
I don't know if such a small snippet requires us to "reproduce the
above copyright" or where we need to reproduce it if it is needed.

The stdout/stdin replacement code follows
  http://wiki.python.org/moin/ShellRedirectionFails

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).

References:
  http://wiki.python.org/moin/Unicode
  http://www.amk.ca/python/howto/unicode
  http://www.python.org/dev/peps/pep-0100/

I also split libbe/editor.py off from libbe.utility.py and started
explaining the motivation for the BugDir init flags in it's docstring.

16 years agoOops, should be passing libbe.tree.Tree.sort() args to children. Fixed.
W. Trevor King [Tue, 25 Nov 2008 12:12:52 +0000 (07:12 -0500)]
Oops, should be passing libbe.tree.Tree.sort() args to children.  Fixed.

16 years agoHack to fixe encoding bug in becommands/show
W. Trevor King [Tue, 25 Nov 2008 03:03:20 +0000 (22:03 -0500)]
Hack to fixe encoding bug in becommands/show

The situation really calls for a global encoding setting rather than
lots of hardcoded "utf-8"s.  See bug
  f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a

16 years agoAdded becommands/merge to join duplicate bugs.
W. Trevor King [Tue, 25 Nov 2008 02:20:56 +0000 (21:20 -0500)]
Added becommands/merge to join duplicate bugs.

16 years agoAdjusted becommands/set to handle user_id properly.
W. Trevor King [Tue, 25 Nov 2008 02:15:55 +0000 (21:15 -0500)]
Adjusted becommands/set to handle user_id properly.

16 years agoAdded invalid-value checking to becommands/set.py.
W. Trevor King [Tue, 25 Nov 2008 01:55:24 +0000 (20:55 -0500)]
Added invalid-value checking to becommands/set.py.

Kindof a cludgy check, but there's currently no simpler way to find
valid entries for a given setting name (that I can think of).

16 years agoMerge from W. Trevor King's tree.
W. Trevor King [Mon, 24 Nov 2008 23:29:16 +0000 (18:29 -0500)]
Merge from W. Trevor King's tree.

16 years agoTweaked usage strings to increase consistency. Also added README.dev.
W. Trevor King [Mon, 24 Nov 2008 22:02:16 +0000 (17:02 -0500)]
Tweaked usage strings to increase consistency.  Also added README.dev.

I tried to stick to CAPS for argument placeholders.