diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -885,8 +885,8 @@ class queue: 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 --git a/tests/test-mq-merge.out b/tests/test-mq-merge.out --- a/tests/test-mq-merge.out +++ b/tests/test-mq-merge.out @@ -19,6 +19,5 @@ 1 files updated, 0 files merged, 0 files 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 --git a/tests/test-mq.out b/tests/test-mq.out --- a/tests/test-mq.out +++ b/tests/test-mq.out @@ -326,7 +326,7 @@ adding manifests 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 manifests 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