Mercurial > hg
changeset 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 | 1e459ac4cb48 |
children | 8cab8db59b6c |
files | tests/test-phases.t |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-phases.t Tue Mar 24 15:21:11 2020 +0530 +++ b/tests/test-phases.t Wed Mar 25 20:33:15 2020 +0530 @@ -896,11 +896,13 @@ $ hg --config "phases.new-commit=internal" commit -m "my test internal commit" 2>&1 | grep ProgrammingError ** ProgrammingError: this repository does not support the internal phase raise error.ProgrammingError(msg) - mercurial.error.ProgrammingError: this repository does not support the internal phase + mercurial.error.ProgrammingError: this repository does not support the internal phase (no-chg !) + ProgrammingError: this repository does not support the internal phase (chg !) $ hg --config "phases.new-commit=archived" commit -m "my test archived commit" 2>&1 | grep ProgrammingError ** ProgrammingError: this repository does not support the archived phase raise error.ProgrammingError(msg) - mercurial.error.ProgrammingError: this repository does not support the archived phase + mercurial.error.ProgrammingError: this repository does not support the archived phase (no-chg !) + ProgrammingError: this repository does not support the archived phase (chg !) $ cd ..