Skip to content
Snippets Groups Projects
Commit 41021660baa1 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

tests: glob 'mercurial.error' in test-phases.t

On python 2 with chg, `mercurial.error` is omitted while printing error. On
other cases it's there in error message.

I did tried to understand what might be the cause was unable to find one on
quick skim through the code.
parent bfc6e75c0114
No related branches found
No related tags found
No related merge requests found
......@@ -896,8 +896,7 @@
$ 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 (no-chg !)
ProgrammingError: this repository does not support the internal phase (chg !)
*ProgrammingError: this repository does not support the internal phase (glob)
$ 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)
......@@ -901,8 +900,7 @@
$ 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 (no-chg !)
ProgrammingError: this repository does not support the archived phase (chg !)
*ProgrammingError: this repository does not support the archived phase (glob)
$ cd ..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment