aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-27 16:50:36 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-27 16:50:36 -0500
commitcfebc238cbda9b6338ec57d5c215c4cbf0246f8b (patch)
tree30efcc0f354a175220814ea5d4e74dd2d71fa2fb /libbe/bugdir.py
parentdff704764d77bffbf6cc94c5ba4bb03309da45f8 (diff)
downloadbugseverywhere-cfebc238cbda9b6338ec57d5c215c4cbf0246f8b.tar.gz
Moved InvalidStorageVersion from libbe.command to libbe.storage
Also added ConnectionError pretty-print to ui.command_line, storage version checking to BugDir.duplicate_bugdir(), and optional revision argument to Storage.storage_version().
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 9d90a70..50dc8ba 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -295,6 +295,9 @@ class BugDir (list, settings_object.SavedSettingsObject):
Duplicate bugdirs are read-only copies used for generating
diffs between revisions.
"""
+ storage_version = self.storage.storage_version(revision)
+ if storage_version != libbe.storage.STORAGE_VERSION:
+ raise libbe.storage.InvalidStorageVersion(storage_version)
s = copy.deepcopy(self.storage)
s.writeable = False
class RevisionedStorageGet (object):