# HG changeset patch # User André Sintzoff # Date 1353872377 -3600 # Node ID b3ec0b5fd7771b401392a83f47e0c2360e7f6d90 # Parent 2c63896783e31908f18088a7e9c583de6ec530bf phases: fix missing "error" module import (issue3707) diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -103,7 +103,7 @@ import errno from node import nullid, nullrev, bin, hex, short from i18n import _ -import util +import util, error import obsolete allphases = public, draft, secret = range(3) diff --git a/tests/test-phases.t b/tests/test-phases.t --- a/tests/test-phases.t +++ b/tests/test-phases.t @@ -337,8 +337,17 @@ description: A + + +(Issue3707) +test invalid phase name + + $ mkcommit I --config phases.new-commit='babar' + transaction abort! + rollback completed + abort: phases.new-commit: not a valid phase name ('babar') + [255] - Test phase command ===================