##// END OF EJS Templates
split: add tests which demonstrate the issue5864...
Sushil khanchi -
r42056:7da6307c default
parent child Browse files
Show More
@@ -709,3 +709,45 b" the ignoreblanklines thing isn't somehow"
709 EDITOR: HG: branch 'default'
709 EDITOR: HG: branch 'default'
710 EDITOR: HG: changed foo
710 EDITOR: HG: changed foo
711 saved backup bundle to $TESTTMP/f/b/.hg/strip-backup/904c80b40a4a-47fb907f-split.hg (obsstore-off !)
711 saved backup bundle to $TESTTMP/f/b/.hg/strip-backup/904c80b40a4a-47fb907f-split.hg (obsstore-off !)
712
713
714 Testing the case in split when commiting flag-only file changes (issue5864)
715 ---------------------------------------------------------------------------
716 $ hg init $TESTTMP/issue5864
717 $ cd $TESTTMP/issue5864
718 $ echo foo > foo
719 $ hg add foo
720 $ hg ci -m "initial"
721 $ chmod +x foo
722 $ hg ci -m "make executable"
723
724 $ hg glog
725 @ 1:3a2125f0f4cb make executable
726 |
727 o 0:51f273a58d82 initial
728
729
730 $ printf 'y\ny\ny\n' | hg split
731 diff --git a/foo b/foo
732 old mode 100644
733 new mode 100755
734 examine changes to 'foo'? [Ynesfdaq?] y
735
736 no changes to record
737 diff --git a/foo b/foo
738 old mode 100644
739 new mode 100755
740 examine changes to 'foo'? [Ynesfdaq?] y
741
742 no changes to record
743 diff --git a/foo b/foo
744 old mode 100644
745 new mode 100755
746 examine changes to 'foo'? [Ynesfdaq?] y
747
748 no changes to record
749 diff --git a/foo b/foo
750 old mode 100644
751 new mode 100755
752 examine changes to 'foo'? [Ynesfdaq?] abort: response expected
753 [255]
General Comments 0
You need to be logged in to leave comments. Login now