mercurial/commands.py
changeset 2908 3848488244fc
parent 2882 c2932ad5476a
child 2920 ef8ee4477019
child 2921 addb58e3b41c
equal deleted inserted replaced
2900:05257fd28591 2908:3848488244fc
  1335     node1, node2 = revpair(ui, repo, opts['rev'])
  1335     node1, node2 = revpair(ui, repo, opts['rev'])
  1336 
  1336 
  1337     fns, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
  1337     fns, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
  1338 
  1338 
  1339     patch.diff(repo, node1, node2, fns, match=matchfn,
  1339     patch.diff(repo, node1, node2, fns, match=matchfn,
  1340                opts=ui.diffopts(opts))
  1340                opts=patch.diffopts(ui, opts))
  1341 
  1341 
  1342 def export(ui, repo, *changesets, **opts):
  1342 def export(ui, repo, *changesets, **opts):
  1343     """dump the header and diffs for one or more changesets
  1343     """dump the header and diffs for one or more changesets
  1344 
  1344 
  1345     Print the changeset header and diffs for one or more revisions.
  1345     Print the changeset header and diffs for one or more revisions.
  1372     if len(revs) > 1:
  1372     if len(revs) > 1:
  1373         ui.note(_('exporting patches:\n'))
  1373         ui.note(_('exporting patches:\n'))
  1374     else:
  1374     else:
  1375         ui.note(_('exporting patch:\n'))
  1375         ui.note(_('exporting patch:\n'))
  1376     patch.export(repo, map(repo.lookup, revs), template=opts['output'],
  1376     patch.export(repo, map(repo.lookup, revs), template=opts['output'],
  1377                  switch_parent=opts['switch_parent'], opts=ui.diffopts(opts))
  1377                  switch_parent=opts['switch_parent'],
       
  1378                  opts=patch.diffopts(ui, opts))
  1378 
  1379 
  1379 def forget(ui, repo, *pats, **opts):
  1380 def forget(ui, repo, *pats, **opts):
  1380     """don't add the specified files on the next commit (DEPRECATED)
  1381     """don't add the specified files on the next commit (DEPRECATED)
  1381 
  1382 
  1382     (DEPRECATED)
  1383     (DEPRECATED)