[PATCH 6 of 8] histedit: display action being processed in debug mode

pierre-yves.david at logilab.fr pierre-yves.david at logilab.fr
Fri Sep 21 12:28:29 CDT 2012

# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1348248319 -7200
# Node ID 43084bae9ecedc01741895bc1eae27de065b5263
# Parent  11bf8e9d0ddb77fc4bdfce8f2db648e2f2495571
histedit: display action being processed in debug mode

This is very useful when debugging histedit.

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -551,10 +551,11 @@ def histedit(ui, repo, *parent, **opts):
     while rules:
         writestate(repo, parentctx.node(), created, replaced,
                    tmpnodes, existing, rules, keep, tip, replacemap)
         action, ha = rules.pop(0)
+        ui.debug('histedit: processing %s %s\n' % (action, ha))
         (parentctx, created_, replaced_, tmpnodes_) = actiontable[action](
             ui, repo, parentctx, ha, opts)
         if replaced_:
             clen, rlen = len(created_), len(replaced_)

More information about the Mercurial-devel mailing list