mercurial/commands.py
changeset 15118 9a1438f6af5f
parent 15115 c84b3f42d5ae
child 15119 ac46a9cdf6e6
equal deleted inserted replaced
15117:0ab1c3a1f3b2 15118:9a1438f6af5f
  2324     This only removes files from the current branch, not from the
  2324     This only removes files from the current branch, not from the
  2325     entire project history, and it does not delete them from the
  2325     entire project history, and it does not delete them from the
  2326     working directory.
  2326     working directory.
  2327 
  2327 
  2328     To undo a forget before the next commit, see :hg:`add`.
  2328     To undo a forget before the next commit, see :hg:`add`.
       
  2329 
       
  2330     .. container:: verbose
       
  2331 
       
  2332       Examples:
       
  2333 
       
  2334       - forget newly-added binary files::
       
  2335 
       
  2336           hg forget "set:added() and binary()"
       
  2337 
       
  2338       - forget files that would be excluded by .hgignore::
       
  2339 
       
  2340           hg forget "set:hgignore()"
  2329 
  2341 
  2330     Returns 0 on success.
  2342     Returns 0 on success.
  2331     """
  2343     """
  2332 
  2344 
  2333     if not pats:
  2345     if not pats: