Mercurial > hg
changeset 29399:adb0d58b8b0b
rebase: pass repo, ui and opts objects to the RR class constructor
author | Kostia Balytskyi <ikostia@fb.com> |
---|---|
date | Tue, 21 Jun 2016 07:22:49 -0700 |
parents | 2a54cf92c773 |
children | c79da70a4659 |
files | hgext/rebase.py |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: