Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 21051:1004d3cd65fd
outgoing: introduce "outgoinghooks" to avoid redundant outgoing check
This patch introduces "outgoinghooks" to avoid redundant outgoing
check for "hg outgoing" in other than "commands.outgoing" (or utility
functions used by it).
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 16 Apr 2014 00:37:24 +0900 |
parents | f0003f989e72 |
children | e5ad36a845af |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Apr 16 00:37:24 2014 +0900 +++ b/mercurial/cmdutil.py Wed Apr 16 00:37:24 2014 +0900 @@ -2379,6 +2379,11 @@ return cmd +# a list of (ui, repo, otherpeer, opts, missing) functions called by +# commands.outgoing. "missing" is "missing" of the result of +# "findcommonoutgoing()" +outgoinghooks = util.hooks() + # a list of (ui, repo) functions called by commands.summary summaryhooks = util.hooks()