# HG changeset patch # User Kostia Balytskyi # Date 2016-06-21 14:22:49 # Node ID adb0d58b8b0b958ef83b859ab9f4ddc014a91ba9 # Parent 2a54cf92c773777f8a5c821c6831c945eb4131c0 rebase: pass repo, ui and opts objects to the RR class constructor diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -121,7 +121,13 @@ def _revsetdestrebase(repo, subset, x): 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 @@ def rebase(ui, repo, **opts): unresolved conflicts. """ - rbsrt = rebaseruntime() + rbsrt = rebaseruntime(repo, ui, opts) lock = wlock = None try: