changeset 4040: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 5ae460b1f6f0
children add43809810d
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)