hgext/mq.py
changeset 4099 cf5580c16b13
parent 4096 49237d6ae97d
child 4100 c30c922f907a
equal deleted inserted replaced
4098:c08b6af023bc 4099:cf5580c16b13
  1790         q = queue(ui, repo.join(""), repo.join(opts['name']))
  1790         q = queue(ui, repo.join(""), repo.join(opts['name']))
  1791         ui.warn('using patch queue: %s\n' % q.path)
  1791         ui.warn('using patch queue: %s\n' % q.path)
  1792         localupdate = False
  1792         localupdate = False
  1793     else:
  1793     else:
  1794         q = repo.mq
  1794         q = repo.mq
  1795     q.pop(repo, patch, force=opts['force'], update=localupdate, all=opts['all'])
  1795     ret = q.pop(repo, patch, force=opts['force'], update=localupdate,
       
  1796                 all=opts['all'])
  1796     q.save_dirty()
  1797     q.save_dirty()
  1797     return 0
  1798     return ret
  1798 
  1799 
  1799 def rename(ui, repo, patch, name=None, **opts):
  1800 def rename(ui, repo, patch, name=None, **opts):
  1800     """rename a patch
  1801     """rename a patch
  1801 
  1802 
  1802     With one argument, renames the current patch to PATCH1.
  1803     With one argument, renames the current patch to PATCH1.