cf50313cfc6e

api: remove the unneeded datastore ref from rcset
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 19 Jun 2010 17:42:23 -0400
parents dff2e396a30f
children 0c22712a4c18
branches/tags (none)
files review/api.py

Changes

--- a/review/api.py	Sat Jun 19 17:40:05 2010 -0400
+++ b/review/api.py	Sat Jun 19 17:42:23 2010 -0400
@@ -265,7 +265,7 @@
     def __getitem__(self, rev):
         """Return a ReviewChangeset for the given revision."""
         node = hex(self.target[str(rev)].node())
-        return ReviewChangeset(self.ui, self.repo, self.target, node, self)
+        return ReviewChangeset(self.ui, self.repo, self.target, node)
 
 
     def reviewed_changesets(self):
@@ -348,7 +348,7 @@
     and full_diffs methods.  See the docs of those methods for more info.
 
     """
-    def __init__(self, ui, repo, target, node, datastore):
+    def __init__(self, ui, repo, target, node):
         """Initialize a ReviewChangeset.
 
         You shouldn't need to create these directly -- use a ReviewDatastore
@@ -362,7 +362,6 @@
         self.target = target
         self.ui = ui
         self.node = node
-        self.datastore = datastore
 
         if '%s/.exists' % self.node in self.repo['tip']:
             _match = lambda p: lambda fn: fn.startswith(p)