diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-28 12:30:19 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-28 12:30:19 -0500 |
commit | c90044dff5feaf5f43fee9e8559fecec2ec60091 (patch) | |
tree | 6bce45819cb11d87f8bd80464568f9b1dcb5f40c /libbe/storage/base.py | |
parent | 2d6ed9ec7181ef805f305c6c8b7152c1b9ec6ec8 (diff) | |
download | bugseverywhere-c90044dff5feaf5f43fee9e8559fecec2ec60091.tar.gz |
Fixed VCS.children() and Bzr.children() for non-None revisions.
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...
Diffstat (limited to 'libbe/storage/base.py')
-rw-r--r-- | libbe/storage/base.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libbe/storage/base.py b/libbe/storage/base.py index 9807d86..d16c30b 100644 --- a/libbe/storage/base.py +++ b/libbe/storage/base.py @@ -37,7 +37,12 @@ class InvalidStorageVersion(ConnectionError): self.expected_version = expected_version class InvalidID (KeyError): - pass + def __init__(self, id=None, revision=None, msg=None): + if msg == None and id != None: + msg = id + KeyError.__init__(self, msg) + self.id = id + self.revision = revision class InvalidRevision (KeyError): pass |