Rev 2852: Review feedback. in http://people.ubuntu.com/~robertc/baz2.0/pack-support

Robert Collins robertc at robertcollins.net
Tue Sep 25 04:36:43 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/pack-support

------------------------------------------------------------
revno: 2852
revision-id: robertc at robertcollins.net-20070925033629-2wx6ibqr3zyjkswx
parent: robertc at robertcollins.net-20070923222217-n7494b41iceeik08
committer: Robert Collins <robertc at robertcollins.net>
branch nick: pack-support
timestamp: Tue 2007-09-25 13:36:29 +1000
message:
  Review feedback.
modified:
  bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2007-09-23 22:22:17 +0000
+++ b/bzrlib/repository.py	2007-09-25 03:36:29 +0000
@@ -1114,6 +1114,20 @@
         return self.get_revision(revision_id).inventory_sha1
 
     @needs_read_lock
+    def get_revision_graph(self, revision_id=None):
+        """Return a dictionary containing the revision graph.
+
+        NB: This method should not be used as it accesses the entire graph all
+        at once, which is much more data than most operations should require.
+
+        :param revision_id: The revision_id to get a graph from. If None, then
+        the entire revision graph is returned. This is a deprecated mode of
+        operation and will be removed in the future.
+        :return: a dictionary of revision_id->revision_parents_list.
+        """
+        raise NotImplementedError(self.get_revision_graph)
+
+    @needs_read_lock
     def get_revision_graph_with_ghosts(self, revision_ids=None):
         """Return a graph of the revisions with ghosts marked as applicable.
 



More information about the bazaar-commits mailing list