[PATCH 11 of 11 RFC] tests: test --exec flag for histedit command

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


# HG changeset patch
# User Olle Lundberg <geek at nerd.sh>
# Date 1394032423 -3600
#      Wed Mar 05 16:13:43 2014 +0100
# Node ID 6c42acd128ff9dc207e8493a84ec54c0852839ef
# Parent  675c70c708d124506fbbc2b720763024f4b0384a
tests: test --exec flag for histedit command

diff --git a/tests/test-histedit-exec.t b/tests/test-histedit-exec.t
--- a/tests/test-histedit-exec.t
+++ b/tests/test-histedit-exec.t
@@ -220,5 +220,43 @@
   o  changeset:   0:cb9a9f314b8b
      user:        test
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     a
   
+
+test exec flag:
+  $ HGEDITOR=cat hg histedit cb9a9f314b8b --exec "exit 0"
+  pick cb9a9f314b8b 0 a
+  exec exit 0
+  pick d2ae7f538514 1 b
+  exec exit 0
+  pick 177f92b77385 2 c
+  exec exit 0
+  pick 055a42cdd887 3 d
+  exec exit 0
+  pick e860deea161a 4 e
+  exec exit 0
+  pick baf2479ff303 5 foo
+  exec exit 0
+  pick a8b916d59ea3 6 f
+  exec exit 0
+  
+  # Edit history between cb9a9f314b8b and a8b916d59ea3
+  #
+  # Commits are listed from least to most recent
+  #
+  # Commands:
+  #  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
+  #
+  0 files updated, 0 files merged, 5 files removed, 0 files unresolved
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved


More information about the Mercurial-devel mailing list