rebase: switch ui.log calls to common style
The old style raised errors in some cases.
Differential Revision: https://phab.mercurial-scm.org/D1748
--- 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.