aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Eric Kow's _darcs/prefs/author bug.W. Trevor King2010-05-194-2/+16
|
* Use _vcs_get_file_contents (vs get_file_contents) in Darcs._vcs_get_user_idW. Trevor King2010-05-191-1/+1
|
* Merged Eric Kow's _darcs/prefs/author bug.W. Trevor King2010-05-193-0/+29
|\
| * Created bug 592 (_darcs/prefs/author).Eric Kow2010-03-293-0/+29
| |
* | 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-198-1/+81
| | | | | | | | Also fixed a UserError typo in import_xml.py.
* | Merged Anton Batenev's report of Nicolas Alvarez' unicode-in-be-new bugW. Trevor King2010-03-195-0/+97
|\ \
| * | Reported bug with utf-8 stringsAnton Batenev2010-03-164-2/+67
| | |
* | | 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-205-21/+67
|\ \ \ | | | | | | | | | | | | | | | | 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-102-1/+18
|\| | |
| * | | 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-10750-10415/+19314
| |\ \ \ | |/ / / |/| | |
* | | | Merged Eric Kow's HTML escaping patchW. Trevor King2010-02-091-8/+1
|\ \ \ \ | | |_|/ | |/| |
| * | | Avoid double-escaping in 'be html'.Eric Kow2010-02-051-6/+1
| | | |
| * | | Use ${HOME}/.local as default prefix.Eric Kow2010-02-051-1/+1
| | |/ | |/| | | | | | | This is apparently a new standard.
* | | Merged initial Sphinx documentation structure.W. Trevor King2010-02-0844-878/+1951
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's still a long way to go in this direction, but the basic framework is now in place. Toss in numpydoc-style docstrings http://projects.scipy.org/numpy/wiki/CodingStyleGuidelines when you have time, and things will gradually improve over time. I also punted our user ID creation/parsing in libbe.ui.util.user to the email module. This way IDs are handled in an RFC-compliant way (less suprising for users) and by someone else (less work for us :).
| * | | Consolidated Makefile and doc/man/module.mk. Incorperated doc/Makefile.W. Trevor King2010-02-083-78/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now make sphinx builds the Sphinx HTML documentation (in doc/.build/html), and make clean cleans up everything. Having a separate module.mk was just making things confusing, so I took it out ;).
| * | | Fixed docstrings so only Sphinx errors are "autosummary" and "missing attribute"W. Trevor King2010-02-0725-709/+1212
| | | |
| * | | 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-0614-50/+96
| | | |
| * | | Added bugdir and comment modules to Sphinx docsW. Trevor King2010-02-066-27/+55
| | | |
| * | | Added libbe.bug to the Sphinx documentationW. Trevor King2010-02-066-7/+84
| | | |
| * | | Broke out install.txt + reStructuredText markup fixesW. Trevor King2010-02-065-102/+132
| | | |
| * | | Added page titles to the documentation & adjusted section levels.W. Trevor King2010-02-069-97/+138
| | | |
| * | | Sphynx now gets version string automatically.W. Trevor King2010-02-051-2/+4
| | | |
| * | | Moved manpage source doc/src to doc/manW. Trevor King2010-02-054-3/+3
| | | |
| * | | Created Sphinx framework with sphinx-quickstart and added .txt extensiosnsW. Trevor King2010-02-059-0/+303
|/ / /
* | | Sort comments in `be html`.W. Trevor King2010-02-022-8/+2
| | |
* | | Fix be-xml-to-mbox handling of non-text/* content typesW. Trevor King2010-02-021-6/+9
| | |
* | | 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-0110-0/+139
| | | | | | | | | | | | | | | See #bea/e30# ("Where should the vcs-name and encoding configuration options live?") for details.
* | | libbe.command.html.HTMLGen._long_to_linked_user() handles failed conversion.W. Trevor King2010-01-302-4/+41
| | | | | | | | | | | | | | | | | | | | | Before, anything matching libbe.util.id.REGEXP was convert-or-die. Now it's convert-or-no-op. Much safer ;). The new _long_to_linked_user doctest would have failed with the old implementation.
* | | Always load settings when initializing BugDir from storage.W. Trevor King2010-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids problems like: $ be html Traceback (most recent call last): File "be", line 21, in <module> sys.exit(libbe.ui.command_line.main()) File ".../libbe/ui/command_line.py", line 327, in main ret = dispatch(ui, command, args) File ".../libbe/ui/command_line.py", line 267, in dispatch ret = ui.run(command, options, args) File ".../libbe/command/base.py", line 504, in run return command.run(options, args) File ".../libbe/command/base.py", line 233, in run self.status = self._run(**params) File ".../libbe/command/html.py", line 111, in _run html_gen.run(params['output']) File ".../libbe/command/html.py", line 154, in run bugs.sort() File ".../libbe/bug.py", line 261, in __cmp__ return cmp_full(self, other) File ".../libbe/bug.py", line 818, in __call__ val = comparison(bug_1, bug_2) File ".../libbe/bug.py", line 750, in cmp_status return cmp(status_index[bug_1.status], status_index[bug_2.status]) File ".../libbe/storage/util/properties.py", line 223, in _fget raise ValueCheckError(name, value, value_allowed_fn) libbe.storage.util.properties.ValueCheckError: open-feature not allowed by <function <lambda> at 0x84b610c> for status
* | | Fix `be show` handling for no IDsW. Trevor King2010-01-291-1/+1
| | |
* | | Add version information to test.py stderr for easier error reproductionW. Trevor King2010-01-291-0/+2
| | |
* | | 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': '', ...}
* | | Merged some new bugs and be-xml-to-mbox extra_strings fixW. Trevor King2010-01-2917-194/+59
|\ \ \
| * | | Added #bea/169# : Generating per-bugdir/bug/comment change logsW. Trevor King2010-01-283-0/+47
| | | |
| * | | Removed taglines other cruft from #bea/d99# commentsW. Trevor King2010-01-2813-192/+10
| | | |
| * | | Fix "extra_strings" -> "extra-strings" typos in be-xml-to-mboxW. Trevor King2010-01-281-2/+2
| | | |
* | | | Add some workarounds for older bzrlibs. Tested on 1.3.1W. Trevor King2010-01-281-1/+58
|\ \ \ \
| * | | | Work around "bzr ls --non-recursive PATH : no list" bug in old bzrlib.W. Trevor King2010-01-281-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See: https://bugs.launchpad.net/bzr/+bug/158690 Bug affected versions: 0.90.0 (reported) 1.3.1 (my test suite hit it) Doesn't affect versions: 2.0+ (non_recursive -> recursive) But I haven't isolated the source more specifically. Working around it for everything < 2.0 should be safe, but the cutoff could be fine-tuned if someone wants to dig through the bzr.dev history...