changeset 11938:b8b1e6e78486

mq/qqueue: split _setactive Prepare _setactive to be called without checking for applied patches.
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
date Sun, 15 Aug 2010 16:48:08 +0200
parents 0b71e6f2362f
children 7d2ea5ce4aac
files hgext/mq.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Tue Aug 17 13:22:20 2010 -0500
+++ b/hgext/mq.py	Sun Aug 15 16:48:08 2010 +0200
@@ -2662,7 +2662,9 @@
     def _setactive(name):
         if q.applied:
             raise util.Abort(_('patches applied - cannot set new queue active'))
-
+        _setactivenocheck(name)
+
+    def _setactivenocheck(name):
         fh = repo.opener(_activequeue, 'w')
         if name != 'patches':
             fh.write(name)