aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/base.py
Commit message (Collapse)AuthorAgeFilesLines
* storage:base: add tests to catch grandchildren in .children() output.W. Trevor King2012-08-231-1/+51
| | | | | | | | | | | With a tree like: a `-- b `-- c children(a) should return [b], not [b, c] or [c]. This catches a bug in the Mercurial backend. Fix to follow.
* Ran update-copyright.py.W. Trevor King2012-02-161-10/+10
|
* Run update_copyright.py.W. Trevor King2011-05-251-1/+2
|
* Bumped to version 1.0.01.0.0Chris Ball2011-01-081-1/+1
|
* Fix failure message 'X.get' -> 'X.children' in VersionedStorage ↵W. Trevor King2010-06-261-1/+1
| | | | test_get_previous_children
* Ran update_copyright.pyW. Trevor King2010-06-221-11/+12
|
* Fixed docstrings so only Sphinx errors are "autosummary" and "missing attribute"W. Trevor King2010-02-071-4/+2
|
* Implement Arch._vcs_path()W. Trevor King2010-01-271-1/+1
| | | | | | | | | | | | | | | 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 ;).
* Fix StorageTestCase.classname -> ._classname()W. Trevor King2010-01-271-2/+2
| | | | | Introduced in wking@drexel.edu-20100127152727-nu58o4g6jea5or7w
* Make VCS error messages and Storage test failures more descriptiveW. Trevor King2010-01-271-3/+12
|
* 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?".
* Add class name to StorageTestCase failure reportingW. Trevor King2010-01-181-0/+17
|
* Added VCS._u_find_id_from_manifest for faster id->path calculationW. Trevor King2010-01-181-3/+7
|
* Added Storage.ancestorsW. Trevor King2010-01-181-47/+77
|
* Too much trouble to handle Git's lack of dir versioning in ↵W. Trevor King2010-01-181-1/+1
| | | | test_get_previous_children
* Add VersionedStorageTestCases in make_versioned_storage_testcase_subclassesW. Trevor King2010-01-181-2/+5
|
* Added libbe.storage.base.VersionedStorage.changed() and a test.W. Trevor King2010-01-151-5/+59
| | | | | Also converted libbe.storage.base.VersionedStorage revision ids from integers to strings.
* Return a meaningful Storage.version()W. Trevor King2010-01-011-1/+2
|
* Updated copyright informationW. Trevor King2010-01-011-1/+15
|
* Track connection status to allow multiple Storage.disconnect() calls.W. Trevor King2009-12-311-4/+17
| | | | This makes cleaning up UIs easier: just call disconnect() :p.
* Fixed make_*_testcase_subclasses() to avoid duplication.W. Trevor King2009-12-291-13/+15
| | | | | | Also removed final check for 'parent' existence in Storage_add_remove_TestCase.test_remove_nonrooted() because some VCSs (e.g. Git) don't keep track of blank directories.
* Fixed VCS.children() and Bzr.children() for non-None revisions.W. Trevor King2009-12-281-1/+6
| | | | | | | | Now they both pass VersionedStorage_commit_TestCase.test_commit_revision_ids() The .children() implementation for previous revisions lacks the working directory's id<->path cache, so it's fairly slow...
* Added VersionedStorage_commit_TestCase.test_commit_revision_ids()W. Trevor King2009-12-281-0/+23
|
* VersionedStorage_commit_TestCase now allows for versioned files created by ↵W. Trevor King2009-12-281-4/+17
| | | | self.s.init()
* libbe.storage.vcs.base.VCS._init() now creates the '.be/version' file.W. Trevor King2009-12-281-4/+5
| | | | | | And python test.py libbe.storage.vcs.base passes again.
* Moved InvalidStorageVersion from libbe.command to libbe.storageW. Trevor King2009-12-271-1/+12
| | | | | | Also added ConnectionError pretty-print to ui.command_line, storage version checking to BugDir.duplicate_bugdir(), and optional revision argument to Storage.storage_version().
* Added storage.Storage.storage_version() and command.InvalidStorageVersion.W. Trevor King2009-12-271-0/+5
| | | | Now commands automatically check for storage version compatibility.
* Fixed libbe.command.diff + ugly BugDir.duplicate_bugdir implementationW. Trevor King2009-12-151-4/+6
| | | | | | | | | | | | | | | | | | | | | duplicate_bugdir() works, but for the vcs backends, it could require shelling out for _every_ file read. This could, and probably will, be horribly slow. Still it works ;). I'm not sure what a better implementation would be. The old implementation checked out the entire earlier state into a temporary directory pros: single shell out, simple upgrade implementation cons: wouldn't work well for HTTP backens I think a good solution would run along the lines of the currently commented out code in duplicate_bugdir(), where a VersionedStorage.changed_since(revision) call would give you a list of changed files. diff could work off of that directly, without the need to generate a whole duplicate bugdir. I'm stuck on how to handle upgrades though... Also removed trailing whitespace from all python files.
* Don't require new revisions on empty commits.W. Trevor King2009-12-131-4/+7
| | | | | | | | | | | | | | | | | | | For example, hg can't: $ mkdir x; cd x; x$ hg init; x$ echo a> b; hg add b; x$ hg commit -m 'r1'; x$ hg commit -m 'r2'; nothing changed x$ hg log; changeset: 0:e30558c36fca tag: tip user: W. Trevor King <wking@drexel.edu> date: Sun Dec 13 19:48:47 2009 -0500 summary: hi x$ cd ..; rm -rf x We shouldn't need this functionality anyway ;).
* Converted libbe.storage.vcs.hg to new Storage format.W. Trevor King2009-12-131-8/+8
|
* Converted libbe.storage.vcs.base to new Storage format.W. Trevor King2009-12-131-33/+106
|
* Transitioned bugdir.py to new storage format.W. Trevor King2009-12-081-3/+16
|
* Extended libbe.storage.base for separate read/write control.W. Trevor King2009-12-081-36/+94
| | | | | | | | | | | | | | Rather than just having .read_only to set write permissions and assuming that read was always legal. We also added user and backend control of both readable and writeable: do you want to read/write? and can you read/write? Specialized NotSupported into NotWriteable and NotReadable. Added automatic unicode encoding on .set(), and decode option on .get().
* Added libbe.storage.base and test suite.W. Trevor King2009-12-081-0/+687