phases: fix missing "error" module import (
issue3707)
--- a/mercurial/phases.py Mon Nov 26 17:48:39 2012 -0600
+++ b/mercurial/phases.py Sun Nov 25 20:39:37 2012 +0100
@@ -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)
--- a/tests/test-phases.t Mon Nov 26 17:48:39 2012 -0600
+++ b/tests/test-phases.t Sun Nov 25 20:39:37 2012 +0100
@@ -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
===================