rebase: pass repo, ui and opts objects to the RR class constructor
authorKostia Balytskyi <ikostia@fb.com>
Tue, 21 Jun 2016 07:22:49 -0700
changeset 29399 adb0d58b8b0b
parent 29398 2a54cf92c773
child 29400 c79da70a4659
rebase: pass repo, ui and opts objects to the RR class constructor
hgext/rebase.py
--- a/hgext/rebase.py	Tue Jun 21 00:50:39 2016 +0900
+++ b/hgext/rebase.py	Tue Jun 21 07:22:49 2016 -0700
@@ -121,7 +121,13 @@
 
 class rebaseruntime(object):
     """This class is a container for rebase runtime state"""
-    def __init__(self):
+    def __init__(self, repo, ui, opts=None):
+        if opts is None:
+            opts = {}
+
+        self.repo = repo
+        self.ui = ui
+        self.opts = opts
         self.originalwd = None
         self.external = nullrev
         # Mapping between the old revision id and either what is the new rebased
@@ -243,7 +249,7 @@
     unresolved conflicts.
 
     """
-    rbsrt = rebaseruntime()
+    rbsrt = rebaseruntime(repo, ui, opts)
 
     lock = wlock = None
     try: