# HG changeset patch # User Dirkjan Ochtman # Date 1242393677 -7200 # Node ID 9a398dd53bcc25c8e9d854317070344a63cc82a7 # Parent 94ef2c8ce68343239e7956cd29f1d140caea7787 mq: qpush shouldn't complain if working dir is at a non-tip head diff -r 94ef2c8ce683 -r 9a398dd53bcc hgext/mq.py --- a/hgext/mq.py Fri May 15 10:47:19 2009 +0200 +++ b/hgext/mq.py Fri May 15 15:21:17 2009 +0200 @@ -885,8 +885,8 @@ def push(self, repo, patch=None, force=False, list=False, mergeq=None, all=False): wlock = repo.wlock() - if repo.dirstate.parents()[0] != repo.changelog.tip(): - self.ui.status(_("(working directory not at tip)\n")) + if repo.dirstate.parents()[0] not in repo.heads(): + self.ui.status(_("(working directory not at a head)\n")) if not self.series: self.ui.warn(_('no patches in series\n')) diff -r 94ef2c8ce683 -r 9a398dd53bcc tests/test-mq-merge.out --- a/tests/test-mq-merge.out Fri May 15 10:47:19 2009 +0200 +++ b/tests/test-mq-merge.out Fri May 15 15:21:17 2009 +0200 @@ -19,6 +19,5 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved % merge merging with queue at refqueue -(working directory not at tip) applying patcha now at: patcha diff -r 94ef2c8ce683 -r 9a398dd53bcc tests/test-mq.out --- a/tests/test-mq.out Fri May 15 10:47:19 2009 +0200 +++ b/tests/test-mq.out Fri May 15 15:21:17 2009 +0200 @@ -326,7 +326,7 @@ adding file changes added 1 changesets with 1 changes to 1 files patch queue now empty -(working directory not at tip) +(working directory not at a head) applying bar now at: bar diff --git a/bar b/bar @@ -360,7 +360,7 @@ adding file changes added 1 changesets with 1 changes to 1 files patch queue now empty -(working directory not at tip) +(working directory not at a head) applying bar now at: bar diff --git a/foo b/bleh