aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Monotone driver rooting for interface versions >= 8.0.W. Trevor King2010-06-271-11/+8
| | | | | | | I'm not sure where the dirname manipulation came from, but it was screwing things up ;). Also some argument order and indentation cleanups.
* Use _invoke_client (vs. old _u_invoke_client) for Monotone get_workspace_root.W. Trevor King2010-06-261-1/+1
| | | | | | | | | | | | | | | | This fixes Chris' ====================================================================== ERROR: Adding entries with the same ID should not increase the number of children. ---------------------------------------------------------------------- Traceback (most recent call last): ... CommandError: Command failed (1): mtn: misuse: workspace required but not found while executing ['mtn', 'automate', 'get_workspace_root']
* Add a Storage driver for the Monotone VCSW. Trevor King2010-06-262-1/+371
|
* Fix failure message 'X.get' -> 'X.children' in VersionedStorage ↵W. Trevor King2010-06-261-1/+1
| | | | test_get_previous_children
* Removed libbe.storage.vcs.base._get_versionW. Trevor King2010-06-263-21/+14
| | | | | | | | It had been catching exceptions from ._vcs_version, but ._vcs_version should catch its own exceptions. Also use cached results from .version in Darcs and Bzr.version_cmp() rather than calling ._vcs_version directly.
* Remove `be open` and `be close` (again)W. Trevor King2010-06-262-122/+0
| | | | | | | | | | | This repeats: commit 5e769027075ce0f95d5cf9006d097f7fe7d8b38d Author: W. Trevor King <wking@drexel.edu> Date: Mon Dec 14 01:13:05 2009 -0500 Removed `be open` and `be close`. Alias `be status` instead. ... which somehow was clobbered in a merge.
* UsageError -> UserError in a few libbe.command.* submods.W. Trevor King2010-06-264-9/+9
| | | | | | | | | | | This catches them up with the removal of UsageError 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) and moved list command to new format. I guess I don't make many mistakes entering those commands ;).
* Use bug.id.user() instead of bug.uuid many places in libbe.command.dependW. Trevor King2010-06-261-27/+27
|
* Fix Tree() calls in libbe.command.dependW. Trevor King2010-06-261-2/+2
|
* `be list` without --extra-strings now lists bugs with extra strings.W. Trevor King2010-06-261-1/+1
| | | | | The previous implementation would not show them unless an explicitly matching regexp was passed in with --extra-strings.
* Reworked `be list --extra-strings REGEXP` logic.W. Trevor King2010-06-251-2/+8
| | | | | | Previous implementation only matched if *every* regexp matched *every* string. Current implementation matches is *any* regexp matches *any* string.
* Added --tags to `be list`.W. Trevor King2010-06-252-17/+61
| | | | | And broke out tagging functions in libbe.command.tag, so they are accessible to other commands.
* Ran update_copyright.pyW. Trevor King2010-06-2263-720/+785
|
* Updated _version.py and version.py to work with GitW. Trevor King2010-06-221-5/+5
|
* Merge from Trevor.Chris Ball2010-06-221-6/+11
|\
| * Darcs should look in ~/.darcs/author not ~/.darcs/prefs/authorwking2010-06-221-3/+3
| | | | | | | | | | From: http://darcs.net/manual/node7.html#env:DARCS_EMAIL
| * Darcs._vcs_get_user_id() now also checks ~/.darcs/prefs/author|email.wking2010-06-221-4/+6
| | | | | | | | Thanks to Gour for pointing out that it should.
| * Use 'darcs add --boring' for Darcs > 0.9.10wking2010-06-221-1/+4
| |
* | Merge with TrevorChris Ball2010-06-223-3/+14
|\|
| * Use os.path.join in libbe.storage.util.config.path.wking2010-06-222-2/+6
| | | | | | | | | | | | | | | | Versus previous hardcoded "~/.bugs_everywhere". Also improve docstrings for * libbe.storage.util.config.path * libbe.ui.util.user.get_user_id
| * Added -c/--creator to `be new`wking2010-06-221-1/+8
| | | | | | | | Following Gour's suggestion on the mailing list.
* | Merge with Trevor.Chris Ball2010-06-2073-4424/+15913
|\|
| * Fixed Eric Kow's _darcs/prefs/author bug.W. Trevor King2010-05-191-1/+1
| |
| * Use _vcs_get_file_contents (vs get_file_contents) in Darcs._vcs_get_user_idW. Trevor King2010-05-191-1/+1
| |
| * Use getreader (not getwriter) for wrapping stdinW. Trevor King2010-05-191-1/+1
| |
| * Created a bug (wontfix) for Anton Batenev's default-EDITOR comments.W. Trevor King2010-03-191-1/+1
| | | | | | | | Also fixed a UserError typo in import_xml.py.
| * Fix relative links from bug pages in `be html`.W. Trevor King2010-02-221-3/+3
| | | | | | | | | | Introduced by bugs/XXX.html -> bugs/XXX/index.html in wking@drexel.edu-20100220181238-j5ecst02y0k9ioo9
| * Use truncated_id in `be html` comment <div id="">W. Trevor King2010-02-221-4/+5
| |
| * Fix len(char) assertion typo in libbe.util.utility.underlined()W. Trevor King2010-02-201-1/+1
| |
| * Added `be html --min-id-length INT` optionW. Trevor King2010-02-202-2/+10
| |
| * Merged Gianluca's truncated-IDs in `be html` output patch.W. Trevor King2010-02-201-20/+46
| |\ | | | | | | | | | | | | Or at least merged the general idea. Changes in the implementation listed in #bea/01e/2f9#.
| | * Variable lenght of the file name in the be html command.Gianluca Montecchi2010-02-111-4/+34
| | |
| * | Merged Gianluca's fix of my version of Eric's patch ;)W. Trevor King2010-02-101-1/+1
| |\|
| | * Fixed a bug in the be html command.gian2010-02-101-1/+1
| | | | | | | | | | | | | | | | | | File "/usr/lib/python2.5/site-packages/libbe/command/html.py", line 371, in _escape return xml.sax.saxutils.escape(char) NameError: global name 'char' is not defined
| | * Merged Trevor's treeGianluca Montecchi2010-02-1073-4424/+15877
| | |\ | | |/ | |/|
| * | Merged Eric Kow's HTML escaping patchW. Trevor King2010-02-091-8/+1
| |\ \ | |/ / |/| |
* | | Fix darcs testsuite failureChris Ball2009-10-066-30/+37
|\ \ \
* \ \ \ Silence testsuite warnings, from W. Trevor King.Chris Ball2009-10-054-14/+9
|\ \ \ \
* \ \ \ \ Large merge from W. Trevor King, including Gianluca's HTML export.Chris Ball2009-10-0523-796/+1785
|\ \ \ \ \
| | | | * | Fixed docstrings so only Sphinx errors are "autosummary" and "missing attribute"W. Trevor King2010-02-0721-653/+1210
| | | | | |
| | | | * | Use email.utils.formataddr/parseaddr to generate/parse user IDsW. Trevor King2010-02-071-29/+60
| | | | | |
| | | | * | Use numpydoc and generate-libbe-txt.py to autogenerate API documentationW. Trevor King2010-02-065-8/+5
| | | | | |
| | | | * | Added bugdir and comment modules to Sphinx docsW. Trevor King2010-02-063-27/+39
| | | | | |
| | | | * | Added libbe.bug to the Sphinx documentationW. Trevor King2010-02-061-4/+8
| | | | | |
| | | | * | Sort comments in `be html`.W. Trevor King2010-02-022-8/+2
| | | | | |
| | | | * | Restore "content_type" kwarg to Comment.new_reply().W. Trevor King2010-02-022-9/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It had been removed in revno: 473.1.43 committer: W. Trevor King <wking@drexel.edu> branch nick: be.restructure timestamp: Mon 2009-12-14 07:37:51 -0500 message: Transitioned comment to Command format when we pushed unicode encoding/decoding back to the Storage backend. However, with the addition of libbe.util.id.short_to_long_text(), we need it again. Also add a Doctest showing a non-text/* comment, so utilities dealing with them can see what they'll be working with.
| | | | * | Made Bzr/Darcs.version_cmp() more robust in response to Chris' email.W. Trevor King2010-02-012-18/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From: Chris Ball <cjb@laptop.org> Subject: Test suite status ... I ran the wking@drexel.edu-20100130162439-pmh5tg6kuq92x3l5 testsuite on Fedora 13/Rawhide. Had to downgrade Mercurial (bzr-hg doesn't support 1.4.2 yet) and bzr (my Fedora package contained a "b4" in the version string, which breaks libbe/storage/vcs/bzr.py:version_cmp()). ...
| | | | * | Fixed Chris' "zero name length for Mercurial w/o ~/.hgrc" bug.W. Trevor King2010-02-011-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From: Chris Ball <cjb@laptop.org> Subject: Test suite status Date: Mon, 01 Feb 2010 11:27:53 -0500 Message-id: <m38wbcor92.fsf@pullcord.laptop.org> ... I hit the "assert len(name) > 0" in libbe/ui/util/libbe.py, coming from hg.py when running with no ~/.hgrc. Fixed by the following patch: === modified file 'libbe/storage/vcs/hg.py' --- libbe/storage/vcs/hg.py 2010-01-21 17:45:49 +0000 +++ libbe/storage/vcs/hg.py 2010-02-01 16:17:03 +0000 @@ -87,7 +87,14 @@ return tmp_stdout.getvalue().rstrip('\n') def _vcs_get_user_id(self): - return self._u_invoke_client('showconfig', 'ui.username') + output = self._u_invoke_client('showconfig', 'ui.username') + if output != "": + return output.rstrip('\n') + else: + # guess missing info + name = libbe.ui.util.user.get_fallback_username() + email = libbe.ui.util.user.get_fallback_email() + return libbe.ui.util.user.create_user_id(name, email) def _vcs_detect(self, path): """Detect whether a directory is revision-controlled using Mercurial"""
| | | | * | Fix command name output of `be --complete`.W. Trevor King2010-02-012-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By adding command_names option to libbe.command.commands. Previous versions of `be --complete` printed "import_xml", not "import-xml". Also fixed libbe.command.base's doctests, so test.py can run them.
| | | | * | 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.