mq: use repo.changelog.tip() instead of the "tip" tag
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 24 Mar 2008 18:07:07 -0300
changeset 6382 f3c3965fa0ff
parent 6381 0b89315d5de2
child 6383 38485d45f947
mq: use repo.changelog.tip() instead of the "tip" tag
hgext/mq.py
--- a/hgext/mq.py	Mon Mar 24 20:28:13 2008 +0100
+++ b/hgext/mq.py	Mon Mar 24 18:07:07 2008 -0300
@@ -766,7 +766,7 @@
     def push(self, repo, patch=None, force=False, list=False,
              mergeq=None):
         wlock = repo.wlock()
-        if repo.dirstate.parents()[0] != repo.lookup("tip"):
+        if repo.dirstate.parents()[0] != repo.changelog.tip():
             self.ui.status(_("(working directory not at tip)\n"))
 
         try: