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

login
register
mail settings
Submitter Olle Lundberg
Date March 5, 2014, 4:15 p.m.
Message ID <52e135b90ce2b4719d7f.1394036113@SE-C02KQ0DADR55>
Download mbox | patch
Permalink /patch/3853/
State Changes Requested
Headers show

Comments

Olle Lundberg - March 5, 2014, 4:15 p.m.
# HG changeset patch
# User Olle Lundberg <geek@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

Patch

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>