aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/base.py
Commit message (Collapse)AuthorAgeFilesLines
* 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