Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 7037:e3f9feb9ab7e
update: mention null revision in help text
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Wed, 17 Sep 2008 10:24:30 +0200 |
parents | 5ce625983208 |
children | f29b674cc221 380fda3eed13 |
comparison
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 |