hgext/mq.py
changeset 6382 f3c3965fa0ff
parent 6380 a632a9a57821
child 6472 8c4cd80afd3e
child 6552 315b36ce6251
equal deleted inserted replaced
6381:0b89315d5de2 6382:f3c3965fa0ff
   764         raise util.Abort(_("patch %s not in series") % patch)
   764         raise util.Abort(_("patch %s not in series") % patch)
   765 
   765 
   766     def push(self, repo, patch=None, force=False, list=False,
   766     def push(self, repo, patch=None, force=False, list=False,
   767              mergeq=None):
   767              mergeq=None):
   768         wlock = repo.wlock()
   768         wlock = repo.wlock()
   769         if repo.dirstate.parents()[0] != repo.lookup("tip"):
   769         if repo.dirstate.parents()[0] != repo.changelog.tip():
   770             self.ui.status(_("(working directory not at tip)\n"))
   770             self.ui.status(_("(working directory not at tip)\n"))
   771 
   771 
   772         try:
   772         try:
   773             patch = self.lookup(patch)
   773             patch = self.lookup(patch)
   774             # Suppose our series file is: A B C and the current 'top'
   774             # Suppose our series file is: A B C and the current 'top'