##// END OF EJS Templates
mq: deprecate qsave, qrestore and related options
Dirkjan Ochtman -
r10360:bcf90e71 default
parent child Browse files
Show More
@@ -2316,7 +2316,9 b' def rename(ui, repo, patch, name=None, *'
2316 q.save_dirty()
2316 q.save_dirty()
2317
2317
2318 def restore(ui, repo, rev, **opts):
2318 def restore(ui, repo, rev, **opts):
2319 """restore the queue state saved by a revision"""
2319 """restore the queue state saved by a revision (DEPRECATED)
2320
2321 This command is deprecated, use rebase --mq instead."""
2320 rev = repo.lookup(rev)
2322 rev = repo.lookup(rev)
2321 q = repo.mq
2323 q = repo.mq
2322 q.restore(repo, rev, delete=opts['delete'],
2324 q.restore(repo, rev, delete=opts['delete'],
@@ -2325,7 +2327,9 b' def restore(ui, repo, rev, **opts):'
2325 return 0
2327 return 0
2326
2328
2327 def save(ui, repo, **opts):
2329 def save(ui, repo, **opts):
2328 """save current queue state"""
2330 """save current queue state (DEPRECATED)
2331
2332 This command is deprecated, use rebase --mq instead."""
2329 q = repo.mq
2333 q = repo.mq
2330 message = cmdutil.logmessage(opts)
2334 message = cmdutil.logmessage(opts)
2331 ret = q.save(repo, msg=message)
2335 ret = q.save(repo, msg=message)
@@ -2704,7 +2708,7 b' cmdtable = {'
2704 "^qpop":
2708 "^qpop":
2705 (pop,
2709 (pop,
2706 [('a', 'all', None, _('pop all patches')),
2710 [('a', 'all', None, _('pop all patches')),
2707 ('n', 'name', '', _('queue name to pop')),
2711 ('n', 'name', '', _('queue name to pop (DEPRECATED)')),
2708 ('f', 'force', None, _('forget any local changes to patched files'))],
2712 ('f', 'force', None, _('forget any local changes to patched files'))],
2709 _('hg qpop [-a] [-n NAME] [-f] [PATCH | INDEX]')),
2713 _('hg qpop [-a] [-n NAME] [-f] [PATCH | INDEX]')),
2710 "^qpush":
2714 "^qpush":
@@ -2712,8 +2716,8 b' cmdtable = {'
2712 [('f', 'force', None, _('apply if the patch has rejects')),
2716 [('f', 'force', None, _('apply if the patch has rejects')),
2713 ('l', 'list', None, _('list patch name in commit text')),
2717 ('l', 'list', None, _('list patch name in commit text')),
2714 ('a', 'all', None, _('apply all patches')),
2718 ('a', 'all', None, _('apply all patches')),
2715 ('m', 'merge', None, _('merge from another queue')),
2719 ('m', 'merge', None, _('merge from another queue (DEPRECATED)')),
2716 ('n', 'name', '', _('merge queue name'))],
2720 ('n', 'name', '', _('merge queue name (DEPRECATED)'))],
2717 _('hg qpush [-f] [-l] [-a] [-m] [-n NAME] [PATCH | INDEX]')),
2721 _('hg qpush [-f] [-l] [-a] [-m] [-n NAME] [PATCH | INDEX]')),
2718 "^qrefresh":
2722 "^qrefresh":
2719 (refresh,
2723 (refresh,
@@ -54,8 +54,6 b' list of commands:'
54 qpush push the next patch onto the stack
54 qpush push the next patch onto the stack
55 qrefresh update the current patch
55 qrefresh update the current patch
56 qrename rename a patch
56 qrename rename a patch
57 qrestore restore the queue state saved by a revision
58 qsave save current queue state
59 qselect set or print guarded patches to push
57 qselect set or print guarded patches to push
60 qseries print the entire series file
58 qseries print the entire series file
61 qtop print the name of the current patch
59 qtop print the name of the current patch
General Comments 0
You need to be logged in to leave comments. Login now