comparison mercurial/commands.py @ 3902:0d27502a804c

Merge with crew-stable
author Brendan Cully <brendan@kublai.com>
date Fri, 15 Dec 2006 18:38:09 -0800
parents 6b4127c7d52a 2b3175acb653
children b12eae71382d
comparison
equal deleted inserted replaced
3898:316cd5b0c940 3902:0d27502a804c
1063 revs = cmdutil.revrange(repo, changesets) 1063 revs = cmdutil.revrange(repo, changesets)
1064 if len(revs) > 1: 1064 if len(revs) > 1:
1065 ui.note(_('exporting patches:\n')) 1065 ui.note(_('exporting patches:\n'))
1066 else: 1066 else:
1067 ui.note(_('exporting patch:\n')) 1067 ui.note(_('exporting patch:\n'))
1068 patch.export(repo, map(repo.lookup, revs), template=opts['output'], 1068 patch.export(repo, revs, template=opts['output'],
1069 switch_parent=opts['switch_parent'], 1069 switch_parent=opts['switch_parent'],
1070 opts=patch.diffopts(ui, opts)) 1070 opts=patch.diffopts(ui, opts))
1071 1071
1072 def grep(ui, repo, pattern, *pats, **opts): 1072 def grep(ui, repo, pattern, *pats, **opts):
1073 """search for a pattern in specified files and revisions 1073 """search for a pattern in specified files and revisions