diff hgext/mq.py @ 4039:55578a8d7e84

mq: allow push if -r is given explicitly
author Brendan Cully <brendan@kublai.com>
date Mon, 22 Jan 2007 20:22:25 -0800
parents bbdba01cce28
children 5d6b3fa62736
line wrap: on
line diff
--- 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)