mercurial/commands.py
changeset 15111 0be86ec3cafe
parent 15110 7ebf60dbfa46
child 15112 24f5489452af
equal deleted inserted replaced
15110:7ebf60dbfa46 15111:0be86ec3cafe
  2278     Use the -g/--git option to generate diffs in the git extended diff
  2278     Use the -g/--git option to generate diffs in the git extended diff
  2279     format. See :hg:`help diffs` for more information.
  2279     format. See :hg:`help diffs` for more information.
  2280 
  2280 
  2281     With the --switch-parent option, the diff will be against the
  2281     With the --switch-parent option, the diff will be against the
  2282     second parent. It can be useful to review a merge.
  2282     second parent. It can be useful to review a merge.
       
  2283 
       
  2284     .. container:: verbose
       
  2285 
       
  2286       Examples:
       
  2287 
       
  2288       - use export and import to transplant a bugfix to the current
       
  2289         branch::
       
  2290 
       
  2291           hg export -r 9353 | hg import -
       
  2292 
       
  2293       - export all the changesets between two revisions to a file with
       
  2294         rename information::
       
  2295 
       
  2296           hg export --git -r 123:150 > changes.txt
       
  2297 
       
  2298       - split outgoing changes into a series of patches with
       
  2299         descriptive names::
       
  2300 
       
  2301           hg export -r "outgoing()" -o "%n-%m.patch"
  2283 
  2302 
  2284     Returns 0 on success.
  2303     Returns 0 on success.
  2285     """
  2304     """
  2286     changesets += tuple(opts.get('rev', []))
  2305     changesets += tuple(opts.get('rev', []))
  2287     if not changesets:
  2306     if not changesets: