diff tests/test-uncommit-interactive.t @ 3221:9f3521cc4c90

amend: add support for storing a note in obsmarker
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 17 Nov 2017 03:14:47 +0530
parents f0f4cc2febac
children 73b4e84df0bd
line wrap: on
line diff
--- a/tests/test-uncommit-interactive.t	Fri Nov 17 03:14:31 2017 +0530
+++ b/tests/test-uncommit-interactive.t	Fri Nov 17 03:14:47 2017 +0530
@@ -128,7 +128,7 @@
 Uncommit a chunk
 ================
 
-  $ hg amend --extract -i<<EOF
+  $ hg amend --extract -n "note on amend --extract" -i<<EOF
   > y
   > y
   > n
@@ -163,6 +163,14 @@
   +babar
   discard change 3/3 to 'a'? [Ynesfdaq?] n
   
+
+  $ hg obslog
+  @  678a59e5ff90 (3) another one
+  |
+  x  f70fb463d5bf (1) another one
+       rewritten(content) as 678a59e5ff90 by test (Thu Jan 01 00:00:00 1970 +0000)
+         note: 'note on amend --extract'
+  
 The unselected part should be in the diff
 -----------------------------------------
 
@@ -297,6 +305,7 @@
   |
   x  f70fb463d5bf (1) another one
        rewritten(content) as 678a59e5ff90 by test (Thu Jan 01 00:00:00 1970 +0000)
+         note: 'note on amend --extract'
   
 
 Push the changes back to the commit and more commits for more testing