Patchwork D1751: histedit: add ui.log for action count

login
register
mail settings
Submitter phabricator
Date Dec. 22, 2017, 9:18 p.m.
Message ID <differential-rev-PHID-DREV-2r22ydagwgs7s6sg5kxg-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26413/
State Superseded
Headers show

Comments

phabricator - Dec. 22, 2017, 9:18 p.m.
phillco created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




To: phillco, durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Dec. 22, 2017, 9:23 p.m.
quark accepted this revision.
quark added inline comments.

INLINE COMMENTS

> histedit.py:1314
> +    ui.log("histedit", "%d actions to histedit", len(actions),
> +        histedit_num_actions=len(actions))
> +

Usually align with `(`:

  ui.log("histedit", "%d actions to histedit", len(actions),
         histedit_num_actions=len(actions))

REPOSITORY
  rHG Mercurial

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

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

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -1310,6 +1310,9 @@ 
     state.topmost = topmost
     state.replacements = []
 
+    ui.log("histedit", "%d actions to histedit", len(actions),
+        histedit_num_actions=len(actions))
+
     # Create a backup so we can always abort completely.
     backupfile = None
     if not obsolete.isenabled(repo, obsolete.createmarkersopt):