Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 9665:1de5ebfa5585
walkchangerevs: drop ui arg
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 29 Oct 2009 19:03:16 -0500 |
parents | 4164a17e7126 |
children | ee913987e4b0 |
comparison
equal
deleted
inserted
replaced
9664:2a4a0dc4fb85 | 9665:1de5ebfa5585 |
---|---|
1336 fnode = pctx.filenode(pfn) | 1336 fnode = pctx.filenode(pfn) |
1337 grepbody(pfn, parent, flog.read(fnode)) | 1337 grepbody(pfn, parent, flog.read(fnode)) |
1338 except error.LookupError: | 1338 except error.LookupError: |
1339 pass | 1339 pass |
1340 | 1340 |
1341 for ctx in cmdutil.walkchangerevs(ui, repo, matchfn, opts, prep): | 1341 for ctx in cmdutil.walkchangerevs(repo, matchfn, opts, prep): |
1342 rev = ctx.rev() | 1342 rev = ctx.rev() |
1343 parent = ctx.parents()[0].rev() | 1343 parent = ctx.parents()[0].rev() |
1344 for fn in sorted(revfiles.get(rev, [])): | 1344 for fn in sorted(revfiles.get(rev, [])): |
1345 states = matches[rev][fn] | 1345 states = matches[rev][fn] |
1346 copy = copies.get(rev, {}).get(fn) | 1346 copy = copies.get(rev, {}).get(fn) |
2066 if rename: | 2066 if rename: |
2067 copies.append((fn, rename[0])) | 2067 copies.append((fn, rename[0])) |
2068 | 2068 |
2069 displayer.show(ctx, copies=copies) | 2069 displayer.show(ctx, copies=copies) |
2070 | 2070 |
2071 for ctx in cmdutil.walkchangerevs(ui, repo, matchfn, opts, prep): | 2071 for ctx in cmdutil.walkchangerevs(repo, matchfn, opts, prep): |
2072 if count != limit: | 2072 if count != limit: |
2073 if displayer.flush(ctx.rev()): | 2073 if displayer.flush(ctx.rev()): |
2074 count += 1 | 2074 count += 1 |
2075 | 2075 |
2076 def manifest(ui, repo, node=None, rev=None): | 2076 def manifest(ui, repo, node=None, rev=None): |