aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 16c1544..8583b68 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -98,10 +98,19 @@ class BugDir:
rcs = property(get_rcs)
+ def get_reference_bugdir(self, spec):
+ return BugDir(self.rcs.path_in_reference(self.dir, spec))
+
def list(self):
for uuid in self.list_uuids():
yield self.get_bug(uuid)
+ def bug_map(self):
+ bugs = {}
+ for bug in self.list():
+ bugs[bug.uuid] = bug
+ return bugs
+
def get_bug(self, uuid):
return Bug(self.bugs_path, uuid, self.rcs_name)