be.git
15 years agoAdded comments-from-stdin, so we can add tracebacks, e.g. with
W. Trevor King [Fri, 19 Jun 2009 20:26:01 +0000 (16:26 -0400)]
Added comments-from-stdin, so we can add tracebacks, e.g. with

  $ be list --invalid-option | be comment <bug-id> -

15 years agoAllow defaults for config.get_val() in case of missing user-config file.
W. Trevor King [Fri, 19 Jun 2009 19:16:49 +0000 (15:16 -0400)]
Allow defaults for config.get_val() in case of missing user-config file.

Fixes bug introduced by James Rowe's previous patch:

  $ be list
  Traceback (most recent call last):
    ...
    File ".../libbe/rcs.py", line 34, in _get_matching_rcs
      import arch
    File ".../libbe/arch.py", line 29, in <module>
      client = config.get_val("arch_client")
    File ".../libbe/config.py", line 70, in get_val
    File "/usr/lib/python2.5/codecs.py", line 817, in open
      file = __builtin__.open(filename, mode, buffering)
  IOError: [Errno 2] No such file or directory: '/home/wking/.bugs_everywhere'

15 years agoMerged James Rowe's arch-shouldn't-create-userwide-config-file patch.
James Rowe [Fri, 19 Jun 2009 19:10:34 +0000 (15:10 -0400)]
Merged James Rowe's arch-shouldn't-create-userwide-config-file patch.

From his email to the be-devel list:

From: James Rowe <jnrowe@ukfsn.org>
Date: Tue, 3 May 2009 11:44:41 +0000
Subject: [PATCH] Don't create config file unless we're using arch.

Hi,

  I find the current behaviour of creating a config file simply to set
a default for a revision control system I'm never going to use to be
a little annoying, the attached patch changes this behaviour to only
set the default in the config file if you're actually using arch.

Thanks,

James

15 years agoMerged Thomas Habets 2009-01-07 XML output for "be show".
W. Trevor King [Fri, 19 Jun 2009 18:42:15 +0000 (14:42 -0400)]
Merged Thomas Habets 2009-01-07 XML output for "be show".

I rewrote a few of his routines, e.g. generalizing
Comment.string_thread to run a caller-specified method avoided the
need for some duplicate code in Comment.xml_thread.  There was also a
reasonable reorganization of libbe.settings_object.versioned_property
because the <in_reply_to> field of the Comment.xml output was giving
me `-1' (= old settings_object.EMPTY) instead of None, even after I
had set comm.in_reply_to to None.  The rewritten versioned_property
avoids the ambiguity of UNPRIMED vs EMPTY, and avoids the stupididy of
my using EMPTY=-1 ;).

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

16 years agoFixed broken doctest and inconsitent indentation from not wrapping comments.
W. Trevor King [Mon, 24 Nov 2008 21:30:52 +0000 (16:30 -0500)]
Fixed broken doctest and inconsitent indentation from not wrapping comments.

Also emptied becommands/__init__.py.  I didn't understand the plugin
interface when I wrote it.

16 years agoMarked c45e5ece-63e3-4fd2-b33f-0bfd06820cf4 as fixed.
W. Trevor King [Mon, 24 Nov 2008 13:49:44 +0000 (08:49 -0500)]
Marked c45e5ece-63e3-4fd2-b33f-0bfd06820cf4 as fixed.

It's been fixed for a while

16 years agoRemoved auto-wrapping from comment.Comment.string().
W. Trevor King [Mon, 24 Nov 2008 13:11:08 +0000 (08:11 -0500)]
Removed auto-wrapping from comment.Comment.string().

It makes tracebacks almost illegible.  I doubt markup/markdown systax
or auto-formatting is really useful, since bugs-reports are ususally a
short comment and a traceback.

I also closed a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2 and
7bfc591e-584a-476e-8e11-b548f1afcaa6, which have probably been fixed
for a long time...

16 years agoAdded Bug.comments(), BugDir.has_bug() & cleaned up diff.diff().
W. Trevor King [Mon, 24 Nov 2008 12:47:06 +0000 (07:47 -0500)]
Added Bug.comments(), BugDir.has_bug() & cleaned up diff.diff().

+ some other minor fixes and cleanups.

16 years agoReplaced direct filesystem read from bugdir.py with RCS mediated read.
W. Trevor King [Mon, 24 Nov 2008 12:31:51 +0000 (07:31 -0500)]
Replaced direct filesystem read from bugdir.py with RCS mediated read.

Also replaced utility.FileString with StringIO() in cmdutil.py, which
allowed the removal of utility.FileString and utility.get_file.

The only remaining file().read() outside the RCS framework is the read
in utility.editor_string(), but should probably not go through the
RCS.

16 years agoAdded 'allow_no_rcs' flag to RCS file system access methods.
W. Trevor King [Mon, 24 Nov 2008 12:09:03 +0000 (07:09 -0500)]
Added 'allow_no_rcs' flag to RCS file system access methods.

Now mapfile access has fewer special cases, and there is less
redundant rcs.add/update code.

16 years agoCreated bugdir.MultipleBugMatches so bugdir no longer imports cmdutil.
W. Trevor King [Sun, 23 Nov 2008 19:46:51 +0000 (14:46 -0500)]
Created bugdir.MultipleBugMatches so bugdir no longer imports cmdutil.

16 years agoRemoved outdated beuuid import from libbe/bugdir.py
W. Trevor King [Sun, 23 Nov 2008 15:58:40 +0000 (10:58 -0500)]
Removed outdated beuuid import from libbe/bugdir.py

16 years agolibbe/diff.diff() was missing newly created bugs. Fixed.
W. Trevor King [Sun, 23 Nov 2008 15:08:18 +0000 (10:08 -0500)]
libbe/diff.diff() was missing newly created bugs.  Fixed.

Also added blank lines to separate the new/modified/removed groups.

16 years agoGo back to lazy bug loading to get execution speed back up.
W. Trevor King [Sun, 23 Nov 2008 14:50:56 +0000 (09:50 -0500)]
Go back to lazy bug loading to get execution speed back up.

Fixes bug b3c6da51-3a30-42c9-8c75-587c7a1705c5

16 years agoImproved user-id saving/loading/caching & save user-id into duplicate bugdirs.
W. Trevor King [Sun, 23 Nov 2008 13:43:40 +0000 (08:43 -0500)]
Improved user-id saving/loading/caching & save user-id into duplicate bugdirs.

Fixes the duplicate bugs
  a403de79-8f39-41f2-b9ec-15053b175ee2
  c894f10f-197d-4b22-9c5b-19f394df40d4

16 years agoAdded bugdir user-id caching and save/load from settings file.
W. Trevor King [Sun, 23 Nov 2008 13:16:19 +0000 (08:16 -0500)]
Added bugdir user-id caching and save/load from settings file.

16 years ago`be show` now supports showing multiple bugs with a single call.
W. Trevor King [Sun, 23 Nov 2008 12:40:11 +0000 (07:40 -0500)]
`be show` now supports showing multiple bugs with a single call.

16 years agoOops, dba25cfd-aa15-457c-903a-b53ecb5a3b2c was fixed with commit 253.
W. Trevor King [Sun, 23 Nov 2008 12:31:14 +0000 (07:31 -0500)]
Oops, dba25cfd-aa15-457c-903a-b53ecb5a3b2c was fixed with commit 253.

16 years agoOops, dac91856-cb6a-4f69-8c03-38ff0b29aab2 was fixed with commit 242.
W. Trevor King [Sun, 23 Nov 2008 12:26:15 +0000 (07:26 -0500)]
Oops, dac91856-cb6a-4f69-8c03-38ff0b29aab2 was fixed with commit 242.

16 years agoFixed "'NoneType' object is not callable" error in libbe/utility/Dir.__del__
W. Trevor King [Sun, 23 Nov 2008 12:19:36 +0000 (07:19 -0500)]
Fixed "'NoneType' object is not callable" error in libbe/utility/Dir.__del__

16 years agoAdded archive/project init code for `./test_usage.sh arch`.
W. Trevor King [Sun, 23 Nov 2008 11:51:30 +0000 (06:51 -0500)]
Added archive/project init code for `./test_usage.sh arch`.

Also some minor cleanups.

16 years agoExplicit rcs.cleanup() in bugdir test.
W. Trevor King [Sun, 23 Nov 2008 00:45:37 +0000 (19:45 -0500)]
Explicit rcs.cleanup() in bugdir test.

Don't use del(rcs), because if there was an error, there is still a
reference to rcs in the traceback, so it is never cleaned up.  This
can leave the external archive cluttering up your Arch install if
you're using the Arch backend.  See the __del__ documentation

  http://python.active-venture.com/ref/customization.html#l2h-175

for details.

Also fixed some out-of-date method names in libbe.diff

16 years agolibbe.utility.Dir was complaining of a missing shutil in __del__().
W. Trevor King [Sat, 22 Nov 2008 21:46:42 +0000 (16:46 -0500)]
libbe.utility.Dir was complaining of a missing shutil in __del__().

Presumably the cleanup process removed shutil before cleaning up the Dir.
Now Dir keeps a local reference.

16 years agoOops, bug 8e83da06-26f1-4763-a972-dae7e7062233 was fixed by commit 254.
W. Trevor King [Sat, 22 Nov 2008 21:30:24 +0000 (16:30 -0500)]
Oops, bug 8e83da06-26f1-4763-a972-dae7e7062233 was fixed by commit 254.

16 years agoCreated and fixed bug 496edad5-1484-413a-bc68-4b01274a65eb.
W. Trevor King [Sat, 22 Nov 2008 21:15:16 +0000 (16:15 -0500)]
Created and fixed bug 496edad5-1484-413a-bc68-4b01274a65eb.

I figured out why Arch was complaining.  For non-Arch users, file
system access has been tweaked a bit see the BugDir doc string for
details.  Also, you should now set BugDir.rcs instead of .rcs_name.
.rcs_name automatically tracks changes in .rcs (the reverse of the
previous situation), so read from whichever you like.

16 years agoOops, these new submods are used by the new, classified Bug & BugDir.
W. Trevor King [Sat, 22 Nov 2008 21:14:04 +0000 (16:14 -0500)]
Oops, these new submods are used by the new, classified Bug & BugDir.

I'd forgotten tell bzr...

16 years agoAnother major rewrite. Now BugDir, Bug, and Comment are more distinct.
W. Trevor King [Fri, 21 Nov 2008 19:56:05 +0000 (14:56 -0500)]
Another major rewrite.  Now BugDir, Bug, and Comment are more distinct.

I pushed a lot of the little helper functions into the main classes,
which makes it easier for me to keep track of what's going on.  I'm
now at the point where I can run through `python test.py` with each of
the backends (by changing the search order in rcs.py
_get_matching_rcs) without any unexpected errors for each backend
(except Arch).  I can also run `test_usage.sh` without non-Arch errors
either.

However, don't consider this a stable commit yet.  The bzr backend is
*really*slow*, and the other's aren't blazingly fast either.  I think
I'm rewriting the entire database every time I save it :p.  Still, it
passes the checks. and I don't like it when zounds of changes build up.

16 years agoUpdated misc/gui/wxbe with wxPython -> wx changes.
W. Trevor King [Thu, 20 Nov 2008 00:47:46 +0000 (19:47 -0500)]
Updated misc/gui/wxbe with wxPython -> wx changes.

I'd like to be able to sort the bugs by clicking on the various column
titles, but I don't know enough about wxPython to pull it off.  After
wrestling with it for a bit, I realized that I'll only be using the
command line interface anyway, and other people can use the web
interface.  Probably a common feeling, which would explain why the
GUIs feel so abandoned ;).

At any rate, I think the effects of turning the RCSs into classes have
been passed through and stabilized, so my churning should decrease...

16 years agonames.creator() replaced by rcs.get_user_id().
W. Trevor King [Thu, 20 Nov 2008 00:47:00 +0000 (19:47 -0500)]
names.creator() replaced by rcs.get_user_id().

16 years agoSome more fixes to get BE-Web working with libbe changes.
W. Trevor King [Wed, 19 Nov 2008 17:02:23 +0000 (12:02 -0500)]
Some more fixes to get BE-Web working with libbe changes.

16 years agoAdded identity discussion to BE-Web README.txt & require login to edit bugs.
W. Trevor King [Wed, 19 Nov 2008 16:55:40 +0000 (11:55 -0500)]
Added identity discussion to BE-Web README.txt & require login to edit bugs.

16 years agoAdded BE-Web repo-access warning to Bugs-Everywhere-Web/README.txt.
W. Trevor King [Wed, 19 Nov 2008 16:12:43 +0000 (11:12 -0500)]
Added BE-Web repo-access warning to Bugs-Everywhere-Web/README.txt.

16 years agoUpdated Bugs-Everywhere-Web to work with new architecture.
W. Trevor King [Wed, 19 Nov 2008 13:31:45 +0000 (08:31 -0500)]
Updated Bugs-Everywhere-Web to work with new architecture.

16 years agoMerged bug.new_comment into bug.Bug.new_comment.
W. Trevor King [Wed, 19 Nov 2008 13:05:17 +0000 (08:05 -0500)]
Merged bug.new_comment into bug.Bug.new_comment.

16 years agoMoved bug.new_bug code into bugdir.BugDir.new_bug.
W. Trevor King [Wed, 19 Nov 2008 12:57:57 +0000 (07:57 -0500)]
Moved bug.new_bug code into bugdir.BugDir.new_bug.

Also removed explicit comparisons from beweb/controllers.py, since
they are now built into the Bug.__cmp__ method.

16 years agoAdded test_usage.sh pointer to the README.
W. Trevor King [Wed, 19 Nov 2008 12:45:36 +0000 (07:45 -0500)]
Added test_usage.sh pointer to the README.

16 years agoRemoved libbe/tests.py
W. Trevor King [Wed, 19 Nov 2008 12:40:47 +0000 (07:40 -0500)]
Removed libbe/tests.py

Not needed with stronger test.py.  It's only use would be testing an
installed libbe in place...  Maybe that is useful enough?  If so, we
can bring it back.

16 years agoOne of my tests left my bzr name as John Doe. Seems to be fixed now.
W. Trevor King [Wed, 19 Nov 2008 01:51:16 +0000 (20:51 -0500)]
One of my tests left my bzr name as John Doe.  Seems to be fixed now.

I checked with

$ python test.py
...
$ ./test_usage.py
...
$ hg showconfig | grep ui.username && bzr whoami
$ git config user.name && git config user.email && tla my-id

16 years agoMajor rewrite of RCS backends. RCS now represented as a class.
W. Trevor King [Wed, 19 Nov 2008 01:42:50 +0000 (20:42 -0500)]
Major rewrite of RCS backends.  RCS now represented as a class.

Lots of changes and just one commit.  This started with bug
dac91856-cb6a-4f69-8c03-38ff0b29aab2, when I noticed that new bugs
were not being added appropriately with the Git backend.  I'd been
working with Git trouble before with bug
0cad2ac6-76ef-4a88-abdf-b2e02de76f5c, and decided things would be
better off if I just scrapped the current RCS architecture and went to
a more object oriented setup.  So I did.  It's not clear how to add
support for an RCS backend:
 * Create a new module that
   - defines an inheritor of rsc.RCS, overriding the _rcs_*() methods
   - provide a new() function for instantizating the new class
   - defines an inheritor of rcs.RCStestCase, overiding the Class attribute
   - defines 'suite' a unittest.TestSuite testing the module
 * Add your new module to the rest in rcs._get_matching_rcs()
 * Add your new module to the rest in libbe/tests.py
Although I'm not sure libbe/tests.py is still usefull.

The new framework clears out a bunch of hackery that used to be
involved with supporting becommands/diff.py.  There's still room for
progress though.  While implementing the new verision, I moved the
testing framework over from doctest to a doctest/unittest combination.
Longer tests that don't demonstrate a function's usage should be moved
to unittests at the end of the module, since unittest has better
support for setup/teardown, etc.

The new framework also revealed some underimplented backends, most
notably arch.  These backends have now been fixed.

I also tweaked the test_usage.sh script to run through all the backends
if it is called with no arguments.

The fix for the dac bug turned out to be an unflushed file write :p.

16 years agoAdded 'hg', 'arch', and 'none' RCS modes to test_usage.sh.
W. Trevor King [Sun, 16 Nov 2008 20:59:41 +0000 (15:59 -0500)]
Added 'hg', 'arch', and 'none' RCS modes to test_usage.sh.

16 years agoFixed another bug in git.strip_git() (bug 0cad).
W. Trevor King [Sun, 16 Nov 2008 20:37:14 +0000 (15:37 -0500)]
Fixed another bug in git.strip_git() (bug 0cad).

Also added git mode to test_usage.sh.
I'll go through and add modes for the other RCSs...

16 years agoOops, I'd forgotten to tell bzr about my becommands/remove.py.
W. Trevor King [Sun, 16 Nov 2008 19:55:55 +0000 (14:55 -0500)]
Oops, I'd forgotten to tell bzr about my becommands/remove.py.

16 years agoMerged in my git.py changed fixing Hubert Chathi's git set-root bug (0cad).
W. Trevor King [Sun, 16 Nov 2008 19:54:52 +0000 (14:54 -0500)]
Merged in my git.py changed fixing Hubert Chathi's git set-root bug (0cad).

16 years agoAdded ./test_usage.sh as an example usage scenario.
W. Trevor King [Sun, 16 Nov 2008 19:47:16 +0000 (14:47 -0500)]
Added ./test_usage.sh as an example usage scenario.

It is also a good integration test.

16 years agoRemoved dud bug 11e. Moved several bugs from 'closed' to 'fixed'.
W. Trevor King [Sun, 16 Nov 2008 19:35:53 +0000 (14:35 -0500)]
Removed dud bug 11e.  Moved several bugs from 'closed' to 'fixed'.

16 years agoFix Bug.string() handling of None times.
W. Trevor King [Sun, 16 Nov 2008 19:32:19 +0000 (14:32 -0500)]
Fix Bug.string() handling of None times.

16 years agoRemoved the empty bugs 14c and 38b. Fixed bug.string() call in libbe/diff.py.
W. Trevor King [Sun, 16 Nov 2008 19:14:49 +0000 (14:14 -0500)]
Removed the empty bugs 14c and 38b.  Fixed bug.string() call in libbe/diff.py.

16 years agoAdded 'remove' command to remove bugs. Use __desc__ for command help.
W. Trevor King [Sun, 16 Nov 2008 19:12:06 +0000 (14:12 -0500)]
Added 'remove' command to remove bugs.  Use __desc__ for command help.

Using the __desc__ reduces documentation duplication.  It's also better
than using __doc__, because __doc__ could (should?) be more than one-line
long, and we just want a short description to jog our memories in the
complete command list.

Also moved unique_name from cmdutil.py to names.py to avoid the
  bug->cmdutil->bugdir->bug
cyclic include.

16 years agoFixed '-' parsing bug for list --assigned option.
W. Trevor King [Sat, 15 Nov 2008 23:53:45 +0000 (18:53 -0500)]
Fixed '-' parsing bug for list --assigned option.

16 years agoFixed some errors produced while moving bug_summary to Bug.string().
W. Trevor King [Sat, 15 Nov 2008 23:48:08 +0000 (18:48 -0500)]
Fixed some errors produced while moving bug_summary to Bug.string().