Mercurial > hg
changeset 41890:7da6307cc07a
split: add tests which demonstrate the issue5864
Differential Revision: https://phab.mercurial-scm.org/D6057
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Sun, 03 Mar 2019 19:46:59 +0530 |
parents | 3ba9ca537f57 |
children | e82c932c01e3 |
files | tests/test-split.t |
diffstat | 1 files changed, 42 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-split.t Thu Mar 07 01:28:24 2019 +0100 +++ b/tests/test-split.t Sun Mar 03 19:46:59 2019 +0530 @@ -709,3 +709,45 @@ EDITOR: HG: branch 'default' EDITOR: HG: changed foo saved backup bundle to $TESTTMP/f/b/.hg/strip-backup/904c80b40a4a-47fb907f-split.hg (obsstore-off !) + + +Testing the case in split when commiting flag-only file changes (issue5864) +--------------------------------------------------------------------------- + $ hg init $TESTTMP/issue5864 + $ cd $TESTTMP/issue5864 + $ echo foo > foo + $ hg add foo + $ hg ci -m "initial" + $ chmod +x foo + $ hg ci -m "make executable" + + $ hg glog + @ 1:3a2125f0f4cb make executable + | + o 0:51f273a58d82 initial + + + $ printf 'y\ny\ny\n' | hg split + diff --git a/foo b/foo + old mode 100644 + new mode 100755 + examine changes to 'foo'? [Ynesfdaq?] y + + no changes to record + diff --git a/foo b/foo + old mode 100644 + new mode 100755 + examine changes to 'foo'? [Ynesfdaq?] y + + no changes to record + diff --git a/foo b/foo + old mode 100644 + new mode 100755 + examine changes to 'foo'? [Ynesfdaq?] y + + no changes to record + diff --git a/foo b/foo + old mode 100644 + new mode 100755 + examine changes to 'foo'? [Ynesfdaq?] abort: response expected + [255]