aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix "extra_strings" -> "extra-strings" typos in be-xml-to-mboxW. Trevor King2010-01-281-2/+2
|
* Merged with be.wtk trunkW. Trevor King2010-01-281-0/+3
|\
| * Don't accidentally spawn VISUAL in Comment doctests.W. Trevor King2010-01-281-0/+3
| |
* | Add #bea/9c2# : Can comment punt functionality to email.Message?W. Trevor King2010-01-283-0/+34
|/
* Implement Arch._vcs_path()W. Trevor King2010-01-273-9/+30
| | | | | | | | | | | | | | | Fixes VersionedStorage_commit_TestCase.test_get_previous_children. Should have fixed VersionedStorage_commit_TestCase.test_get_previous_version too, but 'tla file-find' is buggy: https://bugs.launchpad.net/ubuntu/+source/tla/+bug/513472 Also: * sort children in test_get_previous_children, since we shouldn't require a particular child order * unescape filenames in Arch._diff() * remove debugging prints from Arch._parse_diff() * remove silly blank line in git.py I'd stumbled across ;).
* Implement Arch._vcs_changed().W. Trevor King2010-01-271-2/+46
| | | | Fixes VersionedStorage_changed_TestCase.test_changed failure.
* Fix StorageTestCase.classname -> ._classname()W. Trevor King2010-01-271-2/+2
| | | | | Introduced in wking@drexel.edu-20100127152727-nu58o4g6jea5or7w
* `be html` links (<a href="...) #-delimited references in text/* bodies.W. Trevor King2010-01-273-9/+50
|
* Merged clarifications requested by Ben FinneyW. Trevor King2010-01-279-45/+97
|\
| * Make VCS error messages and Storage test failures more descriptiveW. Trevor King2010-01-275-11/+23
| |
| * Add --help, --quiet options to test.py.W. Trevor King2010-01-271-33/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes Ben's "unintuitive test.py interface" bug: Date: Wed, 27 Jan 2010 14:09:14 +1100 From: Ben Finney Subject: [Be-devel] Re: Test suite on Trevor's development branch ... > $ python ./test.py -q > > ---------------------------------------------------------------------- > Ran 0 tests in 0.000s > > OK Running a Python unittest-capable test suite with "-q" should run it in "quiet" mode, where progress is indicated by single characters along a lone, and only failures and errors are reported. ...
| * Encourage a run of `make` to build auto-generated files.W. Trevor King2010-01-273-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes Ben's "unintuitive test procedure" bug: Date: Wed, 27 Jan 2010 14:09:14 +1100 From: Ben Finney Subject: [Be-devel] Re: Test suite on Trevor's development branch ... > $ python ./test.py > Traceback (most recent call last): [...] > ImportError: No module named _version So it's not possible to simply get a copy of the branch and try running the test suite. ...
* | Merged be.auth, adding "--auth" to `be serve`W. Trevor King2010-01-276-196/+931
|\ \ | |/ |/|
| * Streamlined libbe.command.serve, adding --auth option, #/bea/c1b#, and testing.W. Trevor King2010-01-276-196/+931
|/
* Added --ssl to `be serve` using cherrypy.wsgiserver.W. Trevor King2010-01-252-61/+214
|
* Convert libbe.command.serve to WSGI for increased flexibility.W. Trevor King2010-01-251-256/+271
| | | | | | | The Python Web Server Gateway Interface (WSGI) is a simple and universal interface between web servers and web applications or frameworks. See PEP 333 for details. http://www.python.org/dev/peps/pep-0333/
* Rework fix for #bea/8fc# : be crashes on outdated id-cacheW. Trevor King2010-01-251-7/+10
| | | | | | | | | | | | | | | | | | | | | | | Now we re-run CachedPathID.init in an 'append' mode, rather than starting over from scratch. This avoids problems like ====================================================================== ERROR: Should not be able to add children to non-directories. ---------------------------------------------------------------------- Traceback (most recent call last): File ".../be.wtk/libbe/storage/base.py", line 680, in test_add_invalid_directory self.s.add('child', 'parent', directory=False) File ".../be.wtk/libbe/storage/base.py", line 248, in add self._add(id, *args, **kwargs) File ".../be.wtk/libbe/storage/vcs/base.py", line 737, in _add path = self._cached_path_id.add_id(id, parent) File ".../be.wtk/libbe/storage/vcs/base.py", line 267, in add_id parent_path = self.path(parent, relpath=True) File ".../be.wtk/libbe/storage/vcs/base.py", line 246, in path raise InvalidID(uuid) InvalidID: parent in revision None and similar.
* Don't print 'Multiple paths' message on cache regenW. Trevor King2010-01-251-3/+3
|
* Fixed #bea/8fc# : be crashes on outdated id-cacheW. Trevor King2010-01-243-2/+10
| | | | Also explicitly avoid loading or saving settings for root comments.
* Added bug #bea/8fc# : be crashes on outdated id-cacheW. Trevor King2010-01-245-0/+78
|
* Merged be.doc documentation rewrite + bugfixes + new bugsW. Trevor King2010-01-2427-105/+700
|\ | | | | | | | | | | | | | | | | Highlights: * Fix broken Diff.comment_body_change_string implementation. * Fix List --severity handling, added --important * Fix `be target --help` * Fix non-text/plain `be comment` code and added 'Created comment...' output
| * Rewrote documentationW. Trevor King2010-01-247-86/+560
| |
| * Added some bugs (and fixed typo) noticed while rewriting documentationW. Trevor King2010-01-249-7/+100
| |
| * Fix Diff.comment_body_change_string's difflib.unified_diff callW. Trevor King2010-01-241-1/+4
| |
| * Fixed List --severity handling, added --importantW. Trevor King2010-01-231-2/+3
| |
| * Fix vars call for `be target --help`W. Trevor King2010-01-231-1/+1
| |
| * Update --subscriber option help string for SubscribeW. Trevor King2010-01-231-1/+1
| |
| * Modern ID format in `be list` _long_helpW. Trevor King2010-01-231-5/+5
| |
| * Fix broken handling of non-text/plain commentsW. Trevor King2010-01-232-3/+10
| |
| * Added "Created comment..." output to `be comment`W. Trevor King2010-01-232-0/+12
| |
| * Reorganized documentation to clean doc/ for user-readable filesW. Trevor King2010-01-237-3/+11
| |
* | Fixed some bugs in settings_object handling and got test_usage.sh working.W. Trevor King2010-01-2313-229/+441
|\| | | | | | | | | | | | | | | | | Highlights: * clarified settings_object handling and improved unittests * added `be list --mine` * fixed some bugs in List, Import_XML, Init * added Storage.exists() (haven't implemented it in all VCS backends though). * added VCS.path()
| * Update test_usage.shW. Trevor King2010-01-231-36/+41
| |
| * Fix typos in untested parts of List and Import_XML for test_usage.pyW. Trevor King2010-01-232-4/+4
| |
| * Added `be list --mine`W. Trevor King2010-01-231-6/+10
| |
| * Init should tell the UI about its connected storage and bugdir.W. Trevor King2010-01-231-0/+2
| |
| * Move BugDir, Bug, and Comment to new _setup_saved_settingsW. Trevor King2010-01-223-8/+8
| |
| * Added testSimplePropertySetStorageSave and relavant rewrites to settings_objectW. Trevor King2010-01-221-10/+45
| | | | | | | | | | | | | | It hadn't been handling the "attach storage after initializing" technique that BugDir, Bug, and Comment use when from_memory==True. Now it does, by refusing to overwrite self.settings with the newly-loaded settings.
| * Add Bzr._vcs_exists() anyway :pW. Trevor King2010-01-221-1/+8
| |
| * We don't need VCS._vcs_exists yet, with exists only used in _addW. Trevor King2010-01-221-1/+1
| |
| * Minor cleanups + remove debuging line in Init doctestW. Trevor King2010-01-222-2/+0
| |
| * Add VCS._exists(), VCS.path(). Fix default handling in VCS._get().W. Trevor King2010-01-221-25/+37
| | | | | | | | | | | | | | | | | | | | VCS.path() consolidates a bunch of distributed code. The VCS backend cannot distinguish between _EMPTY and '' entry values, so it assumes len(contents) == 0 means _EMPTY. However, it had been returing None then, not default like its supposed to.
| * Added _EMPTY and Storage.exists() to libbe.storage.base.W. Trevor King2010-01-221-12/+43
| | | | | | | | | | | | | | There seem to be problems distinguishing between "added but unset" IDs and "added and set to ''" IDs. Now _EMPTY lets us mark "added but unset", and Storage.exists() handles "already added?" more clearly than the old hack "does .get() succeed?".
| * Reworked settings_object module, but command.init tests still fail:W. Trevor King2010-01-225-127/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ python test.py libbe.command.init Doctest: libbe.command.init.Init ... FAIL ... ----------------------- File ".../libbe/command/init.py", line 47, in libbe.command.init.Init Failed example: ui.run(cmd) Exception raised: Traceback (most recent call last): ... File "/tmp/be.wtk/libbe/command/init.py", line 97, in _run bd = libbe.bugdir.BugDir(storage, from_storage=False) File "/tmp/be.wtk/libbe/bugdir.py", line 185, in __init__ self.save() File "/tmp/be.wtk/libbe/bugdir.py", line 228, in save self.save_settings() File "/tmp/be.wtk/libbe/bugdir.py", line 204, in save_settings mf = mapfile.generate(self._get_saved_settings()) File "/tmp/be.wtk/libbe/storage/util/settings_object.py", line 230, in _get_saved_settings self, self._setting_name_to_attr_name(k)) File "/tmp/be.wtk/libbe/storage/util/properties.py", line 194, in _fget value = fget(self) File "/tmp/be.wtk/libbe/storage/util/properties.py", line 329, in _fget primer(self) File "/tmp/be.wtk/libbe/storage/util/settings_object.py", line 69, in prop_load_settings self.load_settings() File "/tmp/be.wtk/libbe/bugdir.py", line 194, in load_settings self.settings = mapfile.parse(settings_mapfile) File "/tmp/be.wtk/libbe/storage/util/mapfile.py", line 123, in parse c = yaml.load(contents) ... File "/usr/lib/python2.6/site-packages/yaml/reader.py", line 213, in update_raw data = self.stream.read(size) AttributeError: 'NoneType' object has no attribute 'read' ...
| * Added unprimableVal option to primed_property.W. Trevor King2010-01-221-5/+14
| | | | | | | | For clearer handling of the "Tried to load but failed" case.
| * Added tests to Init to check for empty settings fileW. Trevor King2010-01-221-1/+8
| |
* | Bugfix merge: better Comment.xml() & libbe.util.id.parse_user()W. Trevor King2010-01-222-1/+20
|\| | | | | | | | | | | Highlights: * new Comment.safe_in_reply_to to improve comment xml output. * don't raise MultipleIDMatches if one of the matches is exact.
| * Add Comment.safe_in_reply_to to improve comment xml output.W. Trevor King2010-01-211-1/+18
| | | | | | | | | | | | | | | | | | | | Now be show --xml ID | be-xml-to-mbox | catmutt shows appropriate linking regardless of missing references or references to alt-ids in the original comments. On the other hand, be show --xml ID | be import-xml could alter alt-ids. If that's a problem we could turn off save_in_reply_to usage via an option to the xml methods in the future.
| * Don't raise MultipleIDMatches if one of the matches is exact.W. Trevor King2010-01-211-0/+2
|/
* Merge assorted bugfixes and optimizations.W. Trevor King2010-01-2128-115/+462
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights: * `be new` adds creator field like its supposed to (oops :p). * `be list --xml` uses <be-xml> format (was <bugs>). * `be import-xml` handles root comments appropriately. * `be` raises an appropriate help message. * `be help` works. * `be html` prints Comment.id.user() information. * better SavedSettingsObject._get_saved_settings() avoids data loss. * be-mbox-to-xml -> be-mail-to-xml and adds assorted format support. * be-xml-to-mbox and be-handle-mail work with new libbe layout. * BugDir.uuids() now caches on-disk uuids for speed. * Mercurial detection works for mercurial <= 1.1.2 _and_ >= 1.2 * Fix bugs in VCS._children() relative/absolute path handling.