view hgext/__init__.py @ 17101:6bc275593d07

mq: defer command wrapping to extsetup (API) mq wraps all commands that are not in commands.norepo, which is now performed in this second phase of the extensions setup process. This goes against the current best practices on the wiki [1] as far as where command wrapping is performed, but follows it regarding where global options are injected. mq needs to be the first layer called when command dispatching in order to consistently retarget to the patch repo, regardless of the load order of the extensions. This means being the last to wrap the command table. Previously, 'hg <extdiff> --mq' would diff the main repo unless mq was enabled after extdiff. [1] http://mercurial.selenic.com/wiki/WritingExtensions
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 08 Jun 2012 23:27:59 -0400
parents 7d439981bec4
children 155e3308289c
line wrap: on
line source

# placeholder