comparison hgext/hgk.py @ 6601:cab3ad865444

match: use match.files() for patch.diff
author Matt Mackall <mpm@selenic.com>
date Mon, 12 May 2008 11:37:08 -0500
parents cd4db3999ef9
children a57a27b12965
comparison
equal deleted inserted replaced
6600:b822a379860b 6601:cab3ad865444
91 node2 = node1 91 node2 = node1
92 node1 = repo.changelog.parents(node1)[0] 92 node1 = repo.changelog.parents(node1)[0]
93 if opts['patch']: 93 if opts['patch']:
94 if opts['pretty']: 94 if opts['pretty']:
95 catcommit(ui, repo, node2, "") 95 catcommit(ui, repo, node2, "")
96 patch.diff(repo, node1, node2, 96 m = cmdutil.matchfiles(repo, files)
97 files=files, 97 patch.diff(repo, node1, node2, files=m.files(), match=m,
98 opts=patch.diffopts(ui, {'git': True})) 98 opts=patch.diffopts(ui, {'git': True}))
99 else: 99 else:
100 __difftree(repo, node1, node2, files=files) 100 __difftree(repo, node1, node2, files=files)
101 if not opts['stdin']: 101 if not opts['stdin']:
102 break 102 break