From 16a391aaf9d3934f7297b7a8fb87184cf555882f Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 14 Apr 2005 18:07:49 +0000 Subject: Added preliminary tree-diffing support --- libbe/bugdir.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libbe/bugdir.py') 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) -- cgit