hgext/mq.py
branchstable
changeset 12352 5be733b20bd1
parent 12344 b6173aee4a47
child 12355 2935cb0ab4e9
child 12378 ab237534d800
equal deleted inserted replaced
12344:b6173aee4a47 12352:5be733b20bd1
  2342     q.save_dirty()
  2342     q.save_dirty()
  2343 
  2343 
  2344 def restore(ui, repo, rev, **opts):
  2344 def restore(ui, repo, rev, **opts):
  2345     """restore the queue state saved by a revision (DEPRECATED)
  2345     """restore the queue state saved by a revision (DEPRECATED)
  2346 
  2346 
  2347     This command is deprecated, use rebase --mq instead."""
  2347     This command is deprecated, use :hg:`rebase` instead."""
  2348     rev = repo.lookup(rev)
  2348     rev = repo.lookup(rev)
  2349     q = repo.mq
  2349     q = repo.mq
  2350     q.restore(repo, rev, delete=opts['delete'],
  2350     q.restore(repo, rev, delete=opts['delete'],
  2351               qupdate=opts['update'])
  2351               qupdate=opts['update'])
  2352     q.save_dirty()
  2352     q.save_dirty()
  2353     return 0
  2353     return 0
  2354 
  2354 
  2355 def save(ui, repo, **opts):
  2355 def save(ui, repo, **opts):
  2356     """save current queue state (DEPRECATED)
  2356     """save current queue state (DEPRECATED)
  2357 
  2357 
  2358     This command is deprecated, use rebase --mq instead."""
  2358     This command is deprecated, use :hg:`rebase` instead."""
  2359     q = repo.mq
  2359     q = repo.mq
  2360     message = cmdutil.logmessage(opts)
  2360     message = cmdutil.logmessage(opts)
  2361     ret = q.save(repo, msg=message)
  2361     ret = q.save(repo, msg=message)
  2362     if ret:
  2362     if ret:
  2363         return ret
  2363         return ret