mercurial/commands.py
changeset 7037 e3f9feb9ab7e
parent 6983 5ce625983208
child 7040 f29b674cc221
child 7184 380fda3eed13
equal deleted inserted replaced
7036:bfad9865b1dc 7037:e3f9feb9ab7e
  2787 
  2787 
  2788 def update(ui, repo, node=None, rev=None, clean=False, date=None):
  2788 def update(ui, repo, node=None, rev=None, clean=False, date=None):
  2789     """update working directory
  2789     """update working directory
  2790 
  2790 
  2791     Update the working directory to the specified revision, or the
  2791     Update the working directory to the specified revision, or the
  2792     tip of the current branch if none is specified.
  2792     tip of the current branch if none is specified. Use null as
       
  2793     the revision to remove the working copy (like 'hg clone -U').
  2793 
  2794 
  2794     If the requested revision is a descendant of the working
  2795     If the requested revision is a descendant of the working
  2795     directory, any outstanding changes in the working directory will
  2796     directory, any outstanding changes in the working directory will
  2796     be merged into the result. If it is not directly descended but is
  2797     be merged into the result. If it is not directly descended but is
  2797     on the same named branch, update aborts with a suggestion to use
  2798     on the same named branch, update aborts with a suggestion to use