# HG changeset patch # User Matt Mackall # Date 2006-10-27 04:59:21 # Node ID cd2216599c991702a865d889e387cce977ce7513 # Parent 09d99b7e4da040d6b4965cc8d5dda7322dbc6c4e minor hg grep simplification diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1491,8 +1491,7 @@ def grep(ui, repo, pattern, *pats, **opt incrementing = rev matches.clear() elif st == 'add': - change = repo.changelog.read(repo.lookup(str(rev))) - mf = repo.manifest.read(change[0]) + mf = repo.changectx(rev).manifest() matches[rev] = {} for fn in fns: if fn in skip: