mercurial/commands.py
changeset 3902 0d27502a804c
parent 3891 6b4127c7d52a
parent 3900 2b3175acb653
child 3920 b12eae71382d
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