comparison mercurial/commands.py @ 3561:cd2216599c99

minor hg grep simplification
author Matt Mackall <mpm@selenic.com>
date Thu, 26 Oct 2006 23:59:21 -0500
parents 45620faafa28
children 730ca93ed788
comparison
equal deleted inserted replaced
3560:09d99b7e4da0 3561:cd2216599c99
1489 for st, rev, fns in changeiter: 1489 for st, rev, fns in changeiter:
1490 if st == 'window': 1490 if st == 'window':
1491 incrementing = rev 1491 incrementing = rev
1492 matches.clear() 1492 matches.clear()
1493 elif st == 'add': 1493 elif st == 'add':
1494 change = repo.changelog.read(repo.lookup(str(rev))) 1494 mf = repo.changectx(rev).manifest()
1495 mf = repo.manifest.read(change[0])
1496 matches[rev] = {} 1495 matches[rev] = {}
1497 for fn in fns: 1496 for fn in fns:
1498 if fn in skip: 1497 if fn in skip:
1499 continue 1498 continue
1500 fstate.setdefault(fn, {}) 1499 fstate.setdefault(fn, {})