mq: allow push if -r is given explicitly
authorBrendan Cully <brendan@kublai.com>
Mon, 22 Jan 2007 20:22:25 -0800
changeset 4039 55578a8d7e84
parent 4038 5ae460b1f6f0
child 4041 add43809810d
mq: allow push if -r is given explicitly
hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -2013,7 +2013,7 @@ def reposetup(ui, repo):
             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)