Mercurial > hg
comparison tests/test-phases.t @ 44618:97265a0c0a42
tests: conditionalize test-phases.t output for chg
IIUC chg loads the ProgrammingError class which leads to it directly referencing
it in error output. This makes the test pass on chg.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 25 Mar 2020 20:33:15 +0530 |
parents | 9c1fd975e9ac |
children | 41021660baa1 |
comparison
equal
deleted
inserted
replaced
44617:1e459ac4cb48 | 44618:97265a0c0a42 |
---|---|
894 $ hg status | 894 $ hg status |
895 A X | 895 A X |
896 $ hg --config "phases.new-commit=internal" commit -m "my test internal commit" 2>&1 | grep ProgrammingError | 896 $ hg --config "phases.new-commit=internal" commit -m "my test internal commit" 2>&1 | grep ProgrammingError |
897 ** ProgrammingError: this repository does not support the internal phase | 897 ** ProgrammingError: this repository does not support the internal phase |
898 raise error.ProgrammingError(msg) | 898 raise error.ProgrammingError(msg) |
899 mercurial.error.ProgrammingError: this repository does not support the internal phase | 899 mercurial.error.ProgrammingError: this repository does not support the internal phase (no-chg !) |
900 ProgrammingError: this repository does not support the internal phase (chg !) | |
900 $ hg --config "phases.new-commit=archived" commit -m "my test archived commit" 2>&1 | grep ProgrammingError | 901 $ hg --config "phases.new-commit=archived" commit -m "my test archived commit" 2>&1 | grep ProgrammingError |
901 ** ProgrammingError: this repository does not support the archived phase | 902 ** ProgrammingError: this repository does not support the archived phase |
902 raise error.ProgrammingError(msg) | 903 raise error.ProgrammingError(msg) |
903 mercurial.error.ProgrammingError: this repository does not support the archived phase | 904 mercurial.error.ProgrammingError: this repository does not support the archived phase (no-chg !) |
905 ProgrammingError: this repository does not support the archived phase (chg !) | |
904 | 906 |
905 $ cd .. | 907 $ cd .. |
906 | 908 |
907 Check it works fine with repository that supports it. | 909 Check it works fine with repository that supports it. |
908 | 910 |