Mercurial > hg > mercurial-crew-with-dirclash
comparison 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 |
comparison
equal
deleted
inserted
replaced
4038:5ae460b1f6f0 | 4039:55578a8d7e84 |
---|---|
2011 force) | 2011 force) |
2012 | 2012 |
2013 return super(mqrepo, self).commit(*args, **opts) | 2013 return super(mqrepo, self).commit(*args, **opts) |
2014 | 2014 |
2015 def push(self, remote, force=False, revs=None): | 2015 def push(self, remote, force=False, revs=None): |
2016 if self.mq.applied and not force: | 2016 if self.mq.applied and not force and not revs: |
2017 raise util.Abort(_('source has mq patches applied')) | 2017 raise util.Abort(_('source has mq patches applied')) |
2018 return super(mqrepo, self).push(remote, force, revs) | 2018 return super(mqrepo, self).push(remote, force, revs) |
2019 | 2019 |
2020 def tags(self): | 2020 def tags(self): |
2021 if self.tagscache: | 2021 if self.tagscache: |