Mercurial > hg-stable
changeset 1405:6fd6527f95eb
log: speedup keyword search when used with --branch
By avoiding unnecessary branch lookup.
author | TK Soh <teekaysoh@yahoo.com> |
---|---|
date | Tue, 18 Oct 2005 20:06:13 -0700 |
parents | 67e20e27d8df |
children | 34cb3957d875 |
files | mercurial/commands.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Oct 18 20:06:05 2005 -0700 +++ b/mercurial/commands.py Tue Oct 18 20:06:13 2005 -0700 @@ -1274,9 +1274,6 @@ elif st == 'add': du.bump(rev) br = None - if opts['branch']: - br = repo.branchlookup([repo.changelog.node(rev)]) - if opts['keyword']: changes = repo.changelog.read(repo.changelog.node(rev)) miss = 0 @@ -1289,6 +1286,9 @@ if miss: continue + if opts['branch']: + br = repo.branchlookup([repo.changelog.node(rev)]) + show_changeset(du, repo, rev, brinfo=br) if opts['patch']: changenode = repo.changelog.node(rev)