mercurial/commands.py
changeset 15113 b55129f7f039
parent 15112 24f5489452af
child 15114 d1bbabf7d35d
equal deleted inserted replaced
15112:24f5489452af 15113:b55129f7f039
  3132     copies in the patch in the same way as 'addremove'.
  3132     copies in the patch in the same way as 'addremove'.
  3133 
  3133 
  3134     To read a patch from standard input, use "-" as the patch name. If
  3134     To read a patch from standard input, use "-" as the patch name. If
  3135     a URL is specified, the patch will be downloaded from it.
  3135     a URL is specified, the patch will be downloaded from it.
  3136     See :hg:`help dates` for a list of formats valid for -d/--date.
  3136     See :hg:`help dates` for a list of formats valid for -d/--date.
       
  3137 
       
  3138     .. container:: verbose
       
  3139 
       
  3140       Examples:
       
  3141 
       
  3142       - import a traditional patch from a website and detect renames::
       
  3143 
       
  3144           hg import -s 80 http://example.com/bugfix.patch
       
  3145 
       
  3146       - import a changeset from an hgweb server::
       
  3147 
       
  3148           hg import http://www.selenic.com/hg/rev/5ca8c111e9aa
       
  3149 
       
  3150       - import all the patches in an Unix-style mbox::
       
  3151 
       
  3152           hg import incoming-patches.mbox
       
  3153 
       
  3154       - attempt to exactly restore an exported changeset (not always
       
  3155         possible)::
       
  3156 
       
  3157           hg import --exact proposed-fix.patch
  3137 
  3158 
  3138     Returns 0 on success.
  3159     Returns 0 on success.
  3139     """
  3160     """
  3140     patches = (patch1,) + patches
  3161     patches = (patch1,) + patches
  3141 
  3162