Patchwork [1,of,2] record_curses: add test for newly added files

login
register
mail settings
Submitter Laurent Charignon
Date March 26, 2015, 12:04 a.m.
Message ID <6d55336ccbdc94ddaa75.1427328256@dev919.prn2.facebook.com>
Download mbox | patch
Permalink /patch/8276/
State Superseded
Headers show

Comments

Laurent Charignon - March 26, 2015, 12:04 a.m.
# HG changeset patch
# User Laurent Charignon <lcharignon@fb.com>
# Date 1427326837 25200
#      Wed Mar 25 16:40:37 2015 -0700
# Node ID 6d55336ccbdc94ddaa75df635c2cf17f11eb5535
# Parent  5b85a5bc5bbb9d8365953609d98e4dce7110e9b0
record_curses: add test for newly added files
Pierre-Yves David - March 26, 2015, 4:18 a.m.
On 03/25/2015 05:04 PM, Laurent Charignon wrote:
> # HG changeset patch
> # User Laurent Charignon <lcharignon@fb.com>
> # Date 1427326837 25200
> #      Wed Mar 25 16:40:37 2015 -0700
> # Node ID 6d55336ccbdc94ddaa75df635c2cf17f11eb5535
> # Parent  5b85a5bc5bbb9d8365953609d98e4dce7110e9b0
> record_curses: add test for newly added files

Can  you be a bit more descriptive about what the test do and test?

(in the test description itself)

Patch

diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t
--- a/tests/test-commit-interactive-curses.t
+++ b/tests/test-commit-interactive-curses.t
@@ -180,5 +180,21 @@ 
   This is the first line
   This is the second line
   This is the third line
+  $ hg update -C .
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ echo "hello" > x
+  $ hg add x
+  $ cat <<EOF >testModeCommands
+  > TOGGLE
+  > TOGGLE
+  > X
+  > EOF
+  $ hg st
+  A x
+  ? editor.sh
+  ? testModeCommands
+  $ hg commit -i  -m "newly added file" -d "0 0"
+  $ hg st
+  ? editor.sh
+  ? testModeCommands
 
-