# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2020-03-25 15:03:15 # Node ID 97265a0c0a4212ce925fafdb976981384f32b176 # Parent 1e459ac4cb48922b444099c255ca2da1c13b244e 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. diff --git a/tests/test-phases.t b/tests/test-phases.t --- a/tests/test-phases.t +++ b/tests/test-phases.t @@ -896,11 +896,13 @@ Check we deny its usage on older reposit $ 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 ..