aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
Commit message (Collapse)AuthorAgeFilesLines
* Fix unittest for `be show` after 22dd202ff4c0a1893f6e9f4d2b6aa1d4da3bf728.W. Trevor King2010-12-061-3/+3
|
* Make libbe.storage.vcs.darcs.Darcs._vcs_listdir() more robust.W. Trevor King2010-12-061-2/+3
| | | | | | | | | | The old version returned [] (for Darcs 2.5) on darcs show files --no-files --patch 'Initial commit' .be (called in `be diff` for `test_usage.sh darcs`), because darcs returned the paths prefixed with './' (e.g. `./.be`, not `.be`). By calculating relative paths and using the relative paths to determine which files belong to the directory, we can handle both prefixed and plain paths.
* Run cmd.cleanup_now() after executing bzr commands.W. Trevor King2010-12-061-0/+10
| | | | | | | | | | | | | | | Otherwise be remove ... blocks if it needs to remove multiple files, since bzrlib.builtins.cmd_remove needs write locks, and the second remove will try to aquire the lock that the first aquire hadn't released. If we force the release, the lock will be available for the second (and later) removal. It's not a problem to call cleanup_now() too often, because calling it clears the cleanup command stack, so I just added explicit cleanups after every bzr .run() call.
* Adjust `be show --xml` since changes to version_info after Bzr->Git migration.W. Trevor King2010-12-061-2/+1
|
* Make dependency tree output respect --show-status/--show-summary flags.W. Trevor King2010-10-281-6/+6
|
* Move Filter, parse_status, and parse_severity from list to depend.W. Trevor King2010-10-282-67/+68
| | | | This breaks an import dependency cycle.
* libbe.command.depend now shares libbe.command.list's status/severity parsing ↵W. Trevor King2010-10-282-38/+35
| | | | for consistency.
* Fixed `list --sort ...` bug.W. Trevor King2010-10-281-1/+3
|
* Add `list --sort time` test reproducing Gianluca's bug.W. Trevor King2010-10-281-0/+1
|
* Ran update_copyright.py.W. Trevor King2010-10-218-6/+8
|
* Strip all whitespace from right side of the VCS storage version string.W. Trevor King2010-09-051-1/+1
| | | | The old method failed with Windows-style \r\n endlines, etc.
* Default to "unknown" version info if libbe._version is missing.W. Trevor King2010-09-052-5/+13
|
* Remove useless children[i] from libbe.storage.vcs.base.VCS._children().W. Trevor King2010-09-051-1/+0
|
* Don't assume len(os.path.sep) == 1 in libbe.storage.vcs.base.W. Trevor King2010-09-051-4/+4
|
* Fix "no attribute '_get_bugdir'" bug in `be help severity`.Marien Zwart2010-08-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Bug and patch submitted by Marien Zwart. I can't think of any side effect issues this might raise, so I'm committing it ;). Excerpts from Marien's email below. From: Marien Zwart <...> Date: Tue, 10 Aug 2010 17:45:06 +0200 Subject: [Be-devel] "be help severity" fails (traceback) ... In current git (d63ec5fd3eca61ea53d06a96bfb52170111fc25d) "be help severity" produces the following: Traceback (most recent call last): ... AttributeError: 'Severity' object has no attribute '_get_bugdir' ... but I am not sure if this has any unintended side effects, so I'd prefer not to submit this as a merge request (for someone more familiar with the code to fix this instead). ...
* Avoid loading the whole bugdir when calling `be html -e`.W. Trevor King2010-07-141-3/+5
| | | | | This cleans up Mathieu Clabaut's fix to the html_gen definition problems in `be html -e`.
* Merge remote branch 'matclab/master'W. Trevor King2010-07-141-4/+4
|\
| * Exception when doing 'be html -e'Mathieu Clabaut2010-07-121-4/+4
| | | | | | | | 'html_gen' was referenced before assignment.
* | Make Gianluca's bug status display optional for `be depend`.W. Trevor King2010-07-141-14/+22
| | | | | | | | | | | | | | | | You might not want the bug status displayed, e.g. if you were writing a script that parsed the output of `be depend`. The new implementation is better anyway since it avoids redundant display definitions for blocks vs. blocked by.
* | Updated the changes following Chris Rewviewgian2010-07-071-3/+3
| |
* | Added the bug summary to the output of the 'be depend' commandGianluca2010-07-071-2/+2
|/
* Ah, restored altered dirname code to Monotone's root method.W. Trevor King2010-06-271-1/+5
| | | | | | | | | | | | The previous implementation used cwd=path which would fail for non-directory paths. The implementation before that was missing the not from if not os.path.isdir(path): dirname = os.path.dirname(path) which meant it found the dirname when it didn't need to, and not when it did ;).
* 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
| |