rebase: switch ui.log calls to common style
authorPhil Cohen <phillco@fb.com>
Fri, 22 Dec 2017 13:13:45 -0600
changeset 35487 bf556bd2f589
parent 35486 4c7ae95e1c71
child 35488 4f5596e5e311
rebase: switch ui.log calls to common style The old style raised errors in some cases. Differential Revision: https://phab.mercurial-scm.org/D1748
hgext/rebase.py
--- a/hgext/rebase.py	Fri Dec 22 21:25:46 2017 +0800
+++ b/hgext/rebase.py	Fri Dec 22 13:13:45 2017 -0600
@@ -390,9 +390,7 @@
         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()
-        })
+        self.repo.ui.log("rebase", "", rebase_imm_used=self.wctx.isinmemory())
 
     def _performrebase(self, tr):
         self._assignworkingcopy()
@@ -966,7 +964,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})
+    ui.log("rebase", "", rebase_rebasing_wcp=rebasingwcp)
     if rbsrt.inmemory and rebasingwcp:
         rbsrt.inmemory = False
         # Check these since we did not before.