mq: improve qqueue message with patches applied (
issue3036)
--- a/hgext/mq.py Thu Oct 04 16:52:20 2012 +0200
+++ b/hgext/mq.py Thu Oct 04 17:00:32 2012 -0500
@@ -3262,7 +3262,8 @@
def _setactive(name):
if q.applied:
- raise util.Abort(_('patches applied - cannot set new queue active'))
+ raise util.Abort(_('new queue created, but cannot make active '
+ 'as patches are applied'))
_setactivenocheck(name)
def _setactivenocheck(name):
--- a/tests/test-mq-qqueue.t Thu Oct 04 16:52:20 2012 +0200
+++ b/tests/test-mq-qqueue.t Thu Oct 04 17:00:32 2012 -0500
@@ -22,7 +22,7 @@
Try to change patch (create succeeds, switch fails):
$ hg qqueue foo --create
- abort: patches applied - cannot set new queue active
+ abort: new queue created, but cannot make active as patches are applied
[255]
$ hg qqueue
@@ -137,7 +137,7 @@
Fail switching back:
$ hg qqueue patches
- abort: patches applied - cannot set new queue active
+ abort: new queue created, but cannot make active as patches are applied
[255]
Fail deleting current: