comparison mercurial/commands.py @ 10889:e25c450c351e

commands: improve some command summaries
author Matt Mackall <mpm@selenic.com>
date Sun, 11 Apr 2010 14:24:19 -0500
parents f0bfe42c7b1f
children a8486615eece
comparison
equal deleted inserted replaced
10888:5e18023820a9 10889:e25c450c351e
2853 2853
2854 finally: 2854 finally:
2855 wlock.release() 2855 wlock.release()
2856 2856
2857 def rollback(ui, repo, **opts): 2857 def rollback(ui, repo, **opts):
2858 """roll back the last transaction 2858 """roll back the last transaction (dangerous)
2859 2859
2860 This command should be used with care. There is only one level of 2860 This command should be used with care. There is only one level of
2861 rollback, and there is no way to undo a rollback. It will also 2861 rollback, and there is no way to undo a rollback. It will also
2862 restore the dirstate at the time of the last transaction, losing 2862 restore the dirstate at the time of the last transaction, losing
2863 any dirstate changes since that time. This command does not alter 2863 any dirstate changes since that time. This command does not alter
2889 Print the root directory of the current repository. 2889 Print the root directory of the current repository.
2890 """ 2890 """
2891 ui.write(repo.root + "\n") 2891 ui.write(repo.root + "\n")
2892 2892
2893 def serve(ui, repo, **opts): 2893 def serve(ui, repo, **opts):
2894 """export the repository via HTTP 2894 """start stand-alone webserver
2895 2895
2896 Start a local HTTP repository browser and pull server. 2896 Start a local HTTP repository browser and pull server.
2897 2897
2898 By default, the server logs accesses to stdout and errors to 2898 By default, the server logs accesses to stdout and errors to
2899 stderr. Use the -A/--accesslog and -E/--errorlog options to log to 2899 stderr. Use the -A/--accesslog and -E/--errorlog options to log to
3314 lock.release() 3314 lock.release()
3315 3315
3316 return postincoming(ui, repo, modheads, opts.get('update'), None) 3316 return postincoming(ui, repo, modheads, opts.get('update'), None)
3317 3317
3318 def update(ui, repo, node=None, rev=None, clean=False, date=None, check=False): 3318 def update(ui, repo, node=None, rev=None, clean=False, date=None, check=False):
3319 """update working directory 3319 """update working directory (or switch revisions)
3320 3320
3321 Update the repository's working directory to the specified 3321 Update the repository's working directory to the specified
3322 changeset. 3322 changeset.
3323 3323
3324 If no changeset is specified, attempt to update to the head of the 3324 If no changeset is specified, attempt to update to the head of the