[PATCH 1 of 5 V2] test-command-template: add a new commit

Jordi GutiƩrrez Hermoso jordigh at octave.org
Tue May 5 16:39:09 CDT 2015


# HG changeset patch
# User Jordi GutiƩrrez Hermoso <jordigh at octave.org>
# Date 1430851509 14400
#      Tue May 05 14:45:09 2015 -0400
# Node ID ba60b09be9cf804732afdc8f3933b5b26cdf135e
# Parent  0222821526327cc3749523c79ef4cfd89e60789b
test-command-template: add a new commit

This commit modifies, adds, renames, removes files all at once. It
will be mostly interesting for an upcoming test relating to the status
log template.

diff --git a/tests/test-command-template.t b/tests/test-command-template.t
--- a/tests/test-command-template.t
+++ b/tests/test-command-template.t
@@ -1993,6 +1993,15 @@ Upper/lower filters:
   abort: template filter 'upper' is not compatible with keyword 'date'
   [255]
 
+Add a commit that does all possible modifications at once
+
+  $ echo modify >> third
+  $ touch b
+  $ hg add b
+  $ hg mv fourth fifth
+  $ hg rm a
+  $ hg ci -m "Modify, add, remove, rename"
+
 Error on syntax:
 
   $ echo 'x = "f' >> t
@@ -2553,7 +2562,9 @@ Test stringify on sub expressions
 Test splitlines
 
   $ hg log -Gv -R a --template "{splitlines(desc) % 'foo {line}\n'}"
-  @  foo future
+  @  foo Modify, add, remove, rename
+  |
+  o  foo future
   |
   o  foo third
   |
@@ -2587,6 +2598,8 @@ Test startswith
   o
   |
   o
+  |
+  o
   
   o
   |\
@@ -2612,7 +2625,9 @@ Test bad template with better error mess
 Test word function (including index out of bounds graceful failure)
 
   $ hg log -Gv -R a --template "{word('1', desc)}"
-  @
+  @  add,
+  |
+  o
   |
   o
   |
@@ -2636,7 +2651,9 @@ Test word function (including index out 
 Test word third parameter used as splitter
 
   $ hg log -Gv -R a --template "{word('0', desc, 'o')}"
-  @  future
+  @  M
+  |
+  o  future
   |
   o  third
   |


More information about the Mercurial-devel mailing list