Mercurial > hg > mercurial-crew-with-dirclash
changeset 3521:467d923e4e3d
Fix excessive complaining from hg log -b
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 25 Oct 2006 17:45:35 -0500 |
parents | b0dc459cd06c |
children | fb031f47890f |
files | mercurial/commands.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1857,6 +1857,10 @@ def log(ui, repo, *pats, **opts): changeiter, getchange, matchfn = walkchangerevs(ui, repo, pats, opts) + if opts['branches']: + ui.warn(_("the --branches option is deprecated, " + "please use 'hg branches' instead\n")) + if opts['limit']: try: limit = int(opts['limit']) @@ -1933,8 +1937,6 @@ def log(ui, repo, *pats, **opts): br = None if opts['branches']: - ui.warn(_("the --branches option is deprecated, " - "please use 'hg branches' instead\n")) br = repo.branchlookup([repo.changelog.node(rev)]) copies = []