[PATCH 02 of 11 RFC] histedit: document new exec commands

Olle Lundberg olle.lundberg at gmail.com
Wed Mar 5 10:15:13 CST 2014


# HG changeset patch
# User Olle Lundberg <geek at nerd.sh>
# Date 1393977374 -3600
#      Wed Mar 05 00:56:14 2014 +0100
# Node ID 52e135b90ce2b4719d7f550133a01d895a29c2bc
# Parent  fbf918233ab1c75d2b8ca0fd3f6bc4a0033f521c
histedit: document new exec commands

Add documentation for exec and its short form x

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -36,10 +36,11 @@
  #  p, pick = use commit
  #  e, edit = use commit, but stop for amending
  #  f, fold = use commit, but combine it with the one above
  #  d, drop = remove commit from history
  #  m, mess = edit message without changing commit content
+ #  x, exec = execute the given command
  #
 
 In this file, lines beginning with ``#`` are ignored. You must specify a rule
 for each revision in your history. For example, if you had meant to add gamma
 before beta, and then wanted to add delta in the same revision as beta, you
@@ -57,10 +58,11 @@
  #  p, pick = use commit
  #  e, edit = use commit, but stop for amending
  #  f, fold = use commit, but combine it with the one above
  #  d, drop = remove commit from history
  #  m, mess = edit message without changing commit content
+ #  x, exec = execute the given command
  #
 
 At which point you close the editor and ``histedit`` starts working. When you
 specify a ``fold`` operation, ``histedit`` will open an editor when it folds
 those revisions together, offering you a chance to clean up the commit message::
@@ -180,10 +182,11 @@
 #  p, pick = use commit
 #  e, edit = use commit, but stop for amending
 #  f, fold = use commit, but combine it with the one above
 #  d, drop = remove commit from history
 #  m, mess = edit message without changing commit content
+#  x, exec = execute the given command
 #
 """)
 
 def commitfuncfor(repo, src):
     """Build a commit function for the replacement of <src>


More information about the Mercurial-devel mailing list