minor hg grep simplification
authorMatt Mackall <mpm@selenic.com>
Thu, 26 Oct 2006 23:59:21 -0500
changeset 3561 cd2216599c99
parent 3560 09d99b7e4da0
child 3562 730ca93ed788
minor hg grep simplification
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: