mq: allow push if -r is given explicitly
authorBrendan Cully <brendan@kublai.com>
Mon, 22 Jan 2007 20:22:25 -0800
changeset 4040 55578a8d7e84
parent 4038 5ae460b1f6f0
child 4041 add43809810d
mq: allow push if -r is given explicitly
hgext/mq.py
--- a/hgext/mq.py	Thu Jan 18 22:16:26 2007 -0200
+++ b/hgext/mq.py	Mon Jan 22 20:22:25 2007 -0800
@@ -2013,7 +2013,7 @@
             return super(mqrepo, self).commit(*args, **opts)
 
         def push(self, remote, force=False, revs=None):
-            if self.mq.applied and not force:
+            if self.mq.applied and not force and not revs:
                 raise util.Abort(_('source has mq patches applied'))
             return super(mqrepo, self).push(remote, force, revs)