W. Trevor King [Thu, 16 Feb 2012 16:41:55 +0000 (11:41 -0500)]
Add .mailmap, mapping Git committers and authors to canonical names.
Matěj Cepl [Mon, 2 Jan 2012 20:57:56 +0000 (15:57 -0500)]
Generated libbe/_version.py was not UTF-8 aware.
So make failed for me (Matěj Cepl).
Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Matěj Cepl [Mon, 2 Jan 2012 15:14:35 +0000 (16:14 +0100)]
Fix .gitignore
Per gitignore(5) it seems to me that directories in the root of the
repository should be ignored without leading ./ files. E.g.
build/
is correct for ignoring build/ directory and its content.
Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Chris Ball [Mon, 2 Jan 2012 20:43:30 +0000 (15:43 -0500)]
Merge www.physics.drexel.edu/~wking/code/git/be
Chris Ball [Mon, 2 Jan 2012 20:43:13 +0000 (15:43 -0500)]
Fix up broken merge commit.
W. Trevor King [Mon, 14 Nov 2011 02:06:43 +0000 (21:06 -0500)]
Fix my busted
1512c0e2a64e patch to libbe/util/encoding.py.
Some temporary changes to encoding.py seem to have been added to
commit
1512c0e2a64e19c8d4e5697257a4df5ddd8bc727
Author: W. Trevor King <wking@drexel.edu>
Date: Tue Nov 8 07:14:43 2011 -0500
by accident.
The initial change came from discussions with Niall Douglas, during
which I realized that "filesystem encoding" ususally means the
encoding for the *path*, not the *contents*. To avoid further
confusion I'd renamed `get_filesystem_encoding` to the less ambiguous
`get_text_file_encoding`. This commit should complete the transition.
W. Trevor King [Wed, 9 Nov 2011 11:54:43 +0000 (06:54 -0500)]
Ran update_copyright.py.
W. Trevor King [Tue, 8 Nov 2011 12:20:44 +0000 (07:20 -0500)]
Mention `~/.local/bin/` when using default `--user` install.
W. Trevor King [Tue, 8 Nov 2011 12:14:43 +0000 (07:14 -0500)]
Correct doc/install.txt to refer to INSTALL_OPTIONS instead of PREFIX.
This catches the docs up with the changes made in:
commit
a7ad89a6ad7da55089e6f9a4cdd645b7079ee04e
Author: W. Trevor King <wking@drexel.edu>
Date: Sat Apr 16 21:26:02 2011 -0400
W. Trevor King [Thu, 8 Sep 2011 20:10:02 +0000 (16:10 -0400)]
Add the BE_ENCODING environmental variable to override the default encoding.
W. Trevor King [Thu, 8 Sep 2011 20:03:09 +0000 (16:03 -0400)]
Adjust encoding detection (using sys.getfilesystemencoding for file contents).
W. Trevor King [Thu, 8 Sep 2011 03:42:25 +0000 (23:42 -0400)]
Won't fix #/
03d07e61# (bad permission crash).
W. Trevor King [Thu, 8 Sep 2011 03:24:18 +0000 (23:24 -0400)]
Fixed #/
bc1e6ff4# (extra argument crash).
W. Trevor King [Thu, 8 Sep 2011 03:20:54 +0000 (23:20 -0400)]
Oops, that forgot the equals part of Mercurial 1.9 or greater.
W. Trevor King [Thu, 8 Sep 2011 03:15:25 +0000 (23:15 -0400)]
Merge remote branch 'tanguy/master'
W. Trevor King [Thu, 8 Sep 2011 02:54:00 +0000 (22:54 -0400)]
Adjust Mercurial execution so it works with version 1.9 and earlier.
This makes the changes for 1.9 brought in by
bb645f8e489b9f50cd0aec7237ec9adb721797a8
optional. If the Mercurial version is 1.9 or greater, the new code is
used. Otherwise, the old code is used.
W. Trevor King [Thu, 8 Sep 2011 02:47:14 +0000 (22:47 -0400)]
Move Bzr.version_cmp to VCS.version_cmp.
The version comparison code will be useful for all VCSs.
W. Trevor King [Thu, 8 Sep 2011 02:33:51 +0000 (22:33 -0400)]
Merge remote branch 'pschumms/master'
W. Trevor King [Thu, 8 Sep 2011 02:26:37 +0000 (22:26 -0400)]
Add Jinja to the dependency documentation.
W. Trevor King [Thu, 8 Sep 2011 02:09:00 +0000 (22:09 -0400)]
Remove redundant re import from previous bzr version_cmp patch.
Michel Alexandre Salim [Thu, 4 Aug 2011 15:50:32 +0000 (17:50 +0200)]
Enhance Bzr.version_cmp to handle non-numeric versions
bzr uses non-numeric tags to indicate prereleases; previously, this
triggers an exception in be's Bzr module as version comparison is only
supported between version strings that only contain numbers and dots.
This patch extends version_cmp to support a single non-numeric
pre-release string of arbitrary length (e.g. 'a', 'b', 'pre', 'rc'), and
extends the docstring tests to cover this extension.
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Phil Schumm [Sat, 30 Jul 2011 17:00:53 +0000 (12:00 -0500)]
Minor fix to doctest for command.base.get_command(); failure introduced by change to command.base.UnknownCommand in commit
0d5c9c68e947617c9d073d5f19351bdd8f3866db
W. Trevor King [Sat, 30 Jul 2011 15:46:27 +0000 (11:46 -0400)]
Add ImportError to UnknownCommand output in get_command doctest.
This catches the test result up after:
Commit:
0d5c9c68e947617c9d073d5f19351bdd8f3866db
Author: W. Trevor King <wking@drexel.edu>
Date: Wed May 25 10:30:19 2011 -0400
Attach ImportError message to UnknownCommand to aid debugging.
W. Trevor King [Sat, 30 Jul 2011 15:43:30 +0000 (11:43 -0400)]
bugseverywhere.org has changed URL handling, so use different URLs for HTTP testing.
Phil Schumm [Thu, 28 Jul 2011 12:42:11 +0000 (07:42 -0500)]
Fixed problem with Hg support under version 1.9 (mercurial.dispatch.dispatch() now takes a single request object with option for capturing output stream)
Tanguy LE CARROUR [Mon, 6 Jun 2011 18:48:57 +0000 (20:48 +0200)]
Report bug: crash on permission problems
Tanguy LE CARROUR [Mon, 6 Jun 2011 18:07:34 +0000 (20:07 +0200)]
Report bug in arguments processing
W. Trevor King [Wed, 25 May 2011 14:39:51 +0000 (10:39 -0400)]
Raise UserError if summary is not given to `be commit`.
If the user doesn't provide the summary on the command line, through
stdin, or through editor_string, raise an error. This will generally
happen with
$ be commit
(user doesn't enter any text in the editory)
W. Trevor King [Wed, 25 May 2011 14:30:19 +0000 (10:30 -0400)]
Attach ImportError message to UnknownCommand to aid debugging.
W. Trevor King [Wed, 25 May 2011 12:54:53 +0000 (08:54 -0400)]
Add 'Power features' page to the docs.
W. Trevor King [Wed, 25 May 2011 12:37:03 +0000 (08:37 -0400)]
Rework summary handling in `be commit`.
Now you can run `be commit` with no options and have the summary split
off the body automatically. This should be more familiar to most VCS
users.
W. Trevor King [Wed, 25 May 2011 10:52:09 +0000 (06:52 -0400)]
Run update_copyright.py.
W. Trevor King [Wed, 25 May 2011 10:46:26 +0000 (06:46 -0400)]
Move Tim Guirgies' help for status/severity overrides to .
Tim Guirgies [Tue, 24 May 2011 16:15:13 +0000 (02:15 +1000)]
Remove "be set" reference in favour of actual help
Because "be set severity blah" does not actually work, referring users
there to set custom severity levels is just cruel (I spent a half hour
trying to figure out what I was doing wrong). Thus, it is much easier
to, at least for now, state in the help message what they must do in
order to get custom severities and statuses.
Tim Guirgies [Tue, 24 May 2011 16:15:12 +0000 (02:15 +1000)]
Teach be status --help to load per tree config
Again, there is discrepancy between severity.py and status.py. I thought
this feature was extremely useful in severity.py and it should be put
into status.py too.
Tim Guirgies [Tue, 24 May 2011 16:15:11 +0000 (02:15 +1000)]
Restructure severity help function to match status
The code structure was vastly different in severity.py to status.py, so
I mostly copied the structure from there and adjusted it to suit
severity.
The structure in status.py looked (to me) cleaner, more organised, and
easier to work with.
Also, users are now referred by "be severity --help" to "be set --help",
in a manner similar to "be status --help".
For those that don't know that severity can be adjusted on a per
repository basis, this seems extremely helpful. A similar message
appears for status, but not here.
W. Trevor King [Thu, 12 May 2011 20:21:09 +0000 (16:21 -0400)]
Use open() instead of file() in CachedPathID doctests (2to3 compatability).
W. Trevor King [Thu, 12 May 2011 20:19:41 +0000 (16:19 -0400)]
Remove form feeds (for compatibility with 2to3).
W. Trevor King [Thu, 12 May 2011 18:36:34 +0000 (14:36 -0400)]
Convert tabs to spaces in a libbe.bug indention.
W. Trevor King [Thu, 12 May 2011 17:22:55 +0000 (13:22 -0400)]
Update libbe.util.id other_uuids documentation (may contain uuid).
W. Trevor King [Thu, 12 May 2011 13:44:55 +0000 (09:44 -0400)]
Mention Stats.print_callees() in doc/hacking.txt.
W. Trevor King [Thu, 12 May 2011 13:40:23 +0000 (09:40 -0400)]
Mention Stats.print_callers() in doc/hacking.txt.
W. Trevor King [Thu, 12 May 2011 13:23:14 +0000 (09:23 -0400)]
Make BugDir._uuids_cache a set.
For `be list` on a bugdir with 4096 open bugs, this reduced the
cumulative time spend in 8194 calls to BugDir.uuids() from 41 seconds
to 33 seconds.
Of the 33 cumulative seconds, 24 were spend in uuids() itself (and not
in child functions), which is probably from the list comprehension
extracting in-memory Bug uuids. With fancier accounting, you could
probably trust _uuids_cache to already contain all the in-memory
uuids and dispense with the union altogether.
W. Trevor King [Thu, 12 May 2011 12:41:25 +0000 (08:41 -0400)]
Cache Bug.time by hand to avoid lots of redundant calls to str_to_time.
W. Trevor King [Wed, 11 May 2011 21:57:24 +0000 (17:57 -0400)]
Fix links to libbe.util.id from doc/tutorial.txt.
W. Trevor King [Wed, 11 May 2011 17:24:50 +0000 (13:24 -0400)]
Fix test_log_request (broken by commit
36699d82).
W. Trevor King [Mon, 2 May 2011 22:09:58 +0000 (18:09 -0400)]
Add extra strings to Bug.string() output.
W. Trevor King [Mon, 2 May 2011 21:48:18 +0000 (17:48 -0400)]
Revive the UserError/UsageError distinction
UsageError was removed back in
commit
bf3d434b244c57556bec979acbc658c30eb58221
Author: W. Trevor King <wking@drexel.edu>
Date: Sat Dec 12 00:31:55 2009 -0500
Added libbe.command.base (with Command class)...
because the distinction between UsageError and UserError was unclear.
I've brought it back to satisfy a request by Christian Heinrich:
On Sun, May 01, 2011 at 02:52:13AM +0200, Christian Heinrich wrote:
> 3.) Using wrong syntax should receive better help messages.
>
> Current:
>
> "be new" -> ERROR:
> Missing required argument SUMMARY
>
> Should be:
>
> "be new" -> usage: be new [options] SUMMARY
> ...
He suggested we print the full option list as well, but I've decided
to just print the usage summary and remind the user how to get the
full help message if they want it.
W. Trevor King [Mon, 2 May 2011 02:02:57 +0000 (22:02 -0400)]
Add summary line to the Serve command.
Thanks to Christian Heinrich for pointing this out.
W. Trevor King [Sun, 17 Apr 2011 07:17:00 +0000 (03:17 -0400)]
"X or ''|e" -> "(X or '')|e" for proper escaping.
W. Trevor King [Sun, 17 Apr 2011 06:49:21 +0000 (02:49 -0400)]
Correct <tdata> -> <tbody> typo in `be html` templates.
W. Trevor King [Sun, 17 Apr 2011 06:47:43 +0000 (02:47 -0400)]
Ensure comment div ids start with a letter (per validator.w3.org).
W. Trevor King [Sun, 17 Apr 2011 06:46:25 +0000 (02:46 -0400)]
Correct <tbody> -> </tbody> typo in `be html` templates.
W. Trevor King [Sun, 17 Apr 2011 06:41:07 +0000 (02:41 -0400)]
Rework `be html` to use Jinja2 templates.
W. Trevor King [Sun, 17 Apr 2011 02:06:48 +0000 (22:06 -0400)]
`be serve --notify` is a partial solution to /5fb (storage change hooks).
W. Trevor King [Sun, 17 Apr 2011 02:02:38 +0000 (22:02 -0400)]
Revert
54801289, which makes it impossible to save new bugs/comments.
W. Trevor King [Sun, 17 Apr 2011 01:26:02 +0000 (21:26 -0400)]
Fix /64c by installing with `--user` by default (vs. --prefix=${HOME}).
This way users don't need to mess with PYTHONPATH. They'll still need
to tweak PATH so they can find the be entry script.
W. Trevor King [Sun, 17 Apr 2011 01:24:18 +0000 (21:24 -0400)]
Remove old exception types from libbe.bug and libbe.comment.
W. Trevor King [Sun, 17 Apr 2011 01:01:53 +0000 (21:01 -0400)]
Raise exceptions if bug or comment value files are missing.
This happens most often when a previous crash leaves an empty
directory `abc` in .be/.../bugs/abc/ or
.be/.../bugs/.../comments/abc/. The new exception ensures the error
message is "Bug/Comment X missing value file" which tells you where to
look for the repository corruption not "summary is None" which told
you nothing.
W. Trevor King [Sat, 16 Apr 2011 23:27:50 +0000 (19:27 -0400)]
Raise an exception for unrecognized errors in send_pgp_mime.
W. Trevor King [Sat, 16 Apr 2011 21:20:29 +0000 (17:20 -0400)]
Temporarily disable writing in `be new` to avoid repeated updates.
W. Trevor King [Sat, 16 Apr 2011 21:08:35 +0000 (17:08 -0400)]
Add --notify to `be serve`.
W. Trevor King [Sat, 16 Apr 2011 19:53:41 +0000 (15:53 -0400)]
Fix typo libbe.storage.serve -> libbe.command.serve in libbe.storage.http comments.
W. Trevor King [Sat, 16 Apr 2011 19:27:49 +0000 (15:27 -0400)]
Add version releases to NEWS.
W. Trevor King [Sat, 16 Apr 2011 19:25:41 +0000 (15:25 -0400)]
Update NEWS, mentioning recent command options for new and import-xml.
W. Trevor King [Sat, 16 Apr 2011 19:19:31 +0000 (15:19 -0400)]
Add --preserve-uuids to `be import-xml`.
W. Trevor King [Sat, 16 Apr 2011 19:17:33 +0000 (15:17 -0400)]
Import ElementTree in libbe.util.utility for InvalidXML.
W. Trevor King [Sat, 16 Apr 2011 18:05:48 +0000 (14:05 -0400)]
Mark /4bc as fixed.
W. Trevor King [Sat, 16 Apr 2011 18:04:50 +0000 (14:04 -0400)]
Import bea/5a1 from bugs.bugseverywhere.org/ as bea/4bc.
W. Trevor King [Sat, 16 Apr 2011 17:59:37 +0000 (13:59 -0400)]
Import /bea/c3f from bugs.bugseverywhere.org/ as /bea/64c.
W. Trevor King [Sat, 16 Apr 2011 17:56:43 +0000 (13:56 -0400)]
Mark /35a as fixed.
W. Trevor King [Sat, 16 Apr 2011 17:55:09 +0000 (13:55 -0400)]
Import /bea/b39 from bugs.bugseverywhere.org/ as /bea/35a.
W. Trevor King [Sat, 16 Apr 2011 17:37:17 +0000 (13:37 -0400)]
Centralize assigned processing in parse_assigned & add assigned test to New.
W. Trevor King [Sat, 16 Apr 2011 17:26:04 +0000 (13:26 -0400)]
Merge remote branch 'cooper/master'
Valtteri Kokkoniemi [Sat, 16 Apr 2011 17:20:00 +0000 (13:20 -0400)]
Fix bd->bugdir typo in import_xml.
W. Trevor King [Sat, 16 Apr 2011 17:17:45 +0000 (13:17 -0400)]
Fix doctest after Valtteri's import-xml patch.
Valtteri Kokkoniemi [Sat, 16 Apr 2011 17:16:10 +0000 (13:16 -0400)]
fixed created tag handling in import-xml
W. Trevor King [Fri, 15 Apr 2011 23:07:14 +0000 (19:07 -0400)]
Cleanup libbe.util.subproc.Pipe docstring.
W. Trevor King [Fri, 15 Apr 2011 00:53:04 +0000 (20:53 -0400)]
get_fallback_fullname falls back to get_fallback_username if no interesting fullname is set.
W. Trevor King [Fri, 15 Apr 2011 00:47:27 +0000 (20:47 -0400)]
get_output_encoding falls back to get_encoding if sys.__stdout__ is redirected.
W. Trevor King [Fri, 15 Apr 2011 00:44:02 +0000 (20:44 -0400)]
get_fallback_email() now uses the EMAIL environmental variable (if set).
This patch is based on Julien Muchembled's suggestions, which are in
turn based on the related Git code in git.git/ident.c.
W. Trevor King [Thu, 14 Apr 2011 18:13:36 +0000 (14:13 -0400)]
Add libbe.ui.util.user.get_fallback_fullname() and use pwd when possible.
This patch is based on Julien Muchembled's pwd suggestions.
W. Trevor King [Fri, 8 Apr 2011 18:21:45 +0000 (14:21 -0400)]
Fix command-line encoding processing.
String command-line options are converted to unicode using the input
encoding.
We use the fact that Python sets up the original sys.stdout to
determine the terminal encoding.
This should fix Anders Sneckenborg's issues with Swedish characters:
C:\temp\slask4>be new "Svenska tecken åäö"
Created bug with ID 6be/5c3
C:\temp\slask4>
C:\temp\slask4>
C:\temp\slask4>be list
ERROR:
'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in
range(128)
You should set a locale that supports unicode, e.g.
export LANG=en_US.utf8
See http://docs.python.org/library/locale.html for details
Andrew Cooper [Tue, 29 Mar 2011 18:52:52 +0000 (13:52 -0500)]
Add support for 'none' and '-' with --assigned like in `be assign`
Andrew Cooper [Tue, 29 Mar 2011 18:52:25 +0000 (13:52 -0500)]
Add options --status and --severity to `be new`
W. Trevor King [Sun, 6 Mar 2011 01:26:02 +0000 (20:26 -0500)]
Closed /773 (1.0) since we've made a 1.0.0 release.
W. Trevor King [Thu, 24 Feb 2011 22:34:40 +0000 (17:34 -0500)]
Work around bzr filelocking issue on Windows.
W. Trevor King [Thu, 24 Feb 2011 02:56:59 +0000 (21:56 -0500)]
Fix `IDs` and `Mercurial guide` links in docs.
W. Trevor King [Wed, 23 Feb 2011 02:02:11 +0000 (21:02 -0500)]
Local imports and better missing-client detection in client-based VCS classes.
W. Trevor King [Wed, 23 Feb 2011 01:59:53 +0000 (20:59 -0500)]
Remove `--complete` from command-line completion unit test.
This should have been done alongside:
commit
b64851e3eb706b7b57503a0a605e0984e443747c
Author: Robert Lehmann <mail@robertlehmann.de>
Date: Fri Nov 26 08:34:35 2010 +0100
Exclude --complete from completion.
W. Trevor King [Tue, 22 Feb 2011 23:54:57 +0000 (18:54 -0500)]
Correct version for recent bzrlib fix.
Rather than guessing from the output of `bzr tags`, I actually looked
in the realease notes and tracked the removal of run_direct() to
2.2b2, which is confirmed by the r5146 patch itself:
bzr.dev $ ./bzr log -p -n 0 -r 5146 | grep -1 deprec
+
+ @deprecated_method(deprecated_in((2, 2, 0)))
def run_direct(self, *args, **kwargs):
--
+
+ @deprecated_method(deprecated_in((2, 2, 0)))
def run_direct(self, *args, **kwargs):
W. Trevor King [Tue, 22 Feb 2011 20:38:03 +0000 (15:38 -0500)]
Don't call cmd.cleanup_now() for recent Bazaar versions.
Bug reported by Michael Chaffin:
> C:\XXX\ZZZ>be init
> Traceback (most recent call last):
> ...
> AttributeError: 'cmd_root' object has no attribute '_operation'
Due to changes in bzrlib:
revno: 5146 [merge]
committer: Canonical.com Patch Queue Manager <pqm@pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2010-04-12 04:09:46 +0100
So for versions of bzr since then, we don't have to worry about
calling cleanup_now() anymore.
Chris Ball [Tue, 22 Feb 2011 15:07:02 +0000 (10:07 -0500)]
Remove commented code from html.py
Chris Ball [Tue, 22 Feb 2011 15:06:10 +0000 (10:06 -0500)]
Merge commit 'refs/merge-requests/4' of git://gitorious.org/be/be
Gianluca Montecchi [Mon, 24 Jan 2011 23:07:12 +0000 (00:07 +0100)]
Left aligned the table cells
Gianluca Montecchi [Mon, 24 Jan 2011 21:47:32 +0000 (22:47 +0100)]
New html output for html command
W. Trevor King [Tue, 11 Jan 2011 03:43:50 +0000 (22:43 -0500)]
Numpydoc is distributed in Gentoo's science overlay.
W. Trevor King [Tue, 11 Jan 2011 03:35:23 +0000 (22:35 -0500)]
Update link to Numpy docstring guidelines.
W. Trevor King [Tue, 11 Jan 2011 03:30:11 +0000 (22:30 -0500)]
Use Docutils' rst2doc instead of DocBook XML to generate man page.
Chris Ball [Sun, 9 Jan 2011 01:54:44 +0000 (20:54 -0500)]
Merge commit 'refs/merge-requests/3' of git://gitorious.org/be/be