# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1284982262 -7200 # Node ID 5be733b20bd1d0732c209138889043bbf7e6713c # Parent b6173aee4a4739665616b7fd251c19b69694021a mq: fix the deprecation comment for qsave & qrestore. Changeset bcf90e712dc3 deprecated qsave and qrestore. In the deprecating comment, users were referred to 'rebase --mq' which -- at the time the message was written -- didn't exist. Currently, on the default branch, rebase *does* take a '--mq' option, but it probably doesn't do what Dirkjan expected it to do when he wrote the message. In the original, deprecating commit, little context was provided as to why this change was made. Based on my recollection, concensus at the Paris Sprint in February 2010 was that one of the problems with MQ was that it exposed far too many commands. Notable among these were qsave & qrestore: very few core developers understood what they did and even fewer (none, IIRC) actually used them. However, they couldn't be removed; not only do the usual backwards compatibility reasons apply, but the hg book refers to them. diff -r b6173aee4a47 -r 5be733b20bd1 hgext/mq.py --- a/hgext/mq.py Mon Sep 20 21:46:56 2010 +0200 +++ b/hgext/mq.py Mon Sep 20 13:31:02 2010 +0200 @@ -2344,7 +2344,7 @@ def restore(ui, repo, rev, **opts): """restore the queue state saved by a revision (DEPRECATED) - This command is deprecated, use rebase --mq instead.""" + This command is deprecated, use :hg:`rebase` instead.""" rev = repo.lookup(rev) q = repo.mq q.restore(repo, rev, delete=opts['delete'], @@ -2355,7 +2355,7 @@ def save(ui, repo, **opts): """save current queue state (DEPRECATED) - This command is deprecated, use rebase --mq instead.""" + This command is deprecated, use :hg:`rebase` instead.""" q = repo.mq message = cmdutil.logmessage(opts) ret = q.save(repo, msg=message)