Patchwork D1245: rebase: pass wctx to rebasenode()

login
register
mail settings
Submitter phabricator
Date Dec. 8, 2017, 8:28 p.m.
Message ID <dd13b2e6e907e200784ebd66e47d47a7@localhost.localdomain>
Download mbox | patch
Permalink /patch/26115/
State Not Applicable
Headers show

Comments

phabricator - Dec. 8, 2017, 8:28 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG259feddc04e6: rebase: pass wctx to rebasenode() (authored by phillco, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1245?vs=4260&id=4262

REVISION DETAIL
  https://phab.mercurial-scm.org/D1245

AFFECTED FILES
  hgext/rebase.py

CHANGE DETAILS




To: phillco, #hg-reviewers, durin42, dlax
Cc: dlax, mercurial-devel

Patch

diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -481,7 +481,7 @@ 
                         ui.setconfig('ui', 'forcemerge', opts.get('tool', ''),
                                      'rebase')
                         stats = rebasenode(repo, rev, p1, base, self.state,
-                                           self.collapsef, dest)
+                                           self.collapsef, dest, wctx=self.wctx)
                         if stats and stats[3] > 0:
                             if self.wctx.isinmemory():
                                 raise error.InMemoryMergeConflictsError()
@@ -992,7 +992,7 @@ 
         repo.dirstate.setbranch(repo[newnode].branch())
         return newnode
 
-def rebasenode(repo, rev, p1, base, state, collapse, dest):
+def rebasenode(repo, rev, p1, base, state, collapse, dest, wctx):
     'Rebase a single revision rev on top of p1 using base as merge ancestor'
     # Merge phase
     # Update to destination and merge it with local