Patchwork D1681: rebase: add ui.log calls for whether IMM used, whether rebasing WCP

login
register
mail settings
Submitter phabricator
Date Dec. 13, 2017, 6:31 p.m.
Message ID <differential-rev-PHID-DREV-gzl4jxfde4c2obvbhwu6-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26272/
State Superseded
Headers show

Comments

phabricator - Dec. 13, 2017, 6:31 p.m.
phillco created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/rebase.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -390,6 +390,9 @@ 
         else:
             self.wctx = self.repo[None]
             self.repo.ui.debug("rebasing on disk\n")
+        self.repo.ui.log("rebase", "", {
+            'rebase_imm_used': self.wctx.isinmemory()
+        })
 
     def _performrebase(self, tr):
         self._assignworkingcopy()
@@ -957,6 +960,7 @@ 
     # stacks that include the WCP. However, I'm not yet sure where the cutoff
     # is.
     rebasingwcp = repo['.'].rev() in rebaseset
+    ui.log("rebase", "", {'rebase_rebasing_wcp': rebasingwcp})
     if rbsrt.inmemory and rebasingwcp:
         rbsrt.inmemory = False
         # Check these since we did not before.