changeset 3530:cd2216599c99

minor hg grep simplification
author Matt Mackall <mpm@selenic.com>
date Thu, 26 Oct 2006 23:59:21 -0500
parents 09d99b7e4da0
children 730ca93ed788
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Oct 26 23:54:24 2006 -0500
+++ b/mercurial/commands.py	Thu Oct 26 23:59:21 2006 -0500
@@ -1491,8 +1491,7 @@
             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: