hgext/rebase.py
changeset 29399 adb0d58b8b0b
parent 29372 0b5e9a625042
child 29400 c79da70a4659
--- 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: