diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -766,6 +766,9 @@ class queue: def push(self, repo, patch=None, force=False, list=False, mergeq=None): wlock = repo.wlock() + if repo.dirstate.parents()[0] != repo.lookup("tip"): + self.ui.status(_("(working directory not at tip)\n")) + try: patch = self.lookup(patch) # Suppose our series file is: A B C and the current 'top' diff --git a/tests/test-mq.out b/tests/test-mq.out --- a/tests/test-mq.out +++ b/tests/test-mq.out @@ -332,6 +332,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files Patch queue now empty +(working directory not at tip) applying bar Now at: bar diff --git a/bar b/bar @@ -365,6 +366,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files Patch queue now empty +(working directory not at tip) applying bar Now at: bar diff --git a/foo b/bleh