Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 6602:a57a27b12965
match: remove files argument from patch.diff
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | b822a379860b |
children | 41eb20cc1c02 |
comparison
equal
deleted
inserted
replaced
6601:cab3ad865444 | 6602:a57a27b12965 |
---|---|
959 probably with undesirable results. | 959 probably with undesirable results. |
960 """ | 960 """ |
961 node1, node2 = cmdutil.revpair(repo, opts['rev']) | 961 node1, node2 = cmdutil.revpair(repo, opts['rev']) |
962 | 962 |
963 m = cmdutil.match(repo, pats, opts) | 963 m = cmdutil.match(repo, pats, opts) |
964 patch.diff(repo, node1, node2, m.files(), match=m, | 964 patch.diff(repo, node1, node2, match=m, opts=patch.diffopts(ui, opts)) |
965 opts=patch.diffopts(ui, opts)) | |
966 | 965 |
967 def export(ui, repo, *changesets, **opts): | 966 def export(ui, repo, *changesets, **opts): |
968 """dump the header and diffs for one or more changesets | 967 """dump the header and diffs for one or more changesets |
969 | 968 |
970 Print the changeset header and diffs for one or more revisions. | 969 Print the changeset header and diffs for one or more revisions. |