comparison mercurial/commands.py @ 11102:275198bc904a stable

commands: explain that "hg serve" is mostly for ad-hoc sharing
author Martin Geisler <mg@lazybytes.net>
date Fri, 07 May 2010 17:01:14 +0200
parents 9f2c0dd91389
children d29bd98ebff6
comparison
equal deleted inserted replaced
11089:9f2c0dd91389 11102:275198bc904a
2875 ui.write(repo.root + "\n") 2875 ui.write(repo.root + "\n")
2876 2876
2877 def serve(ui, repo, **opts): 2877 def serve(ui, repo, **opts):
2878 """export the repository via HTTP 2878 """export the repository via HTTP
2879 2879
2880 Start a local HTTP repository browser and pull server. 2880 Start a local HTTP repository browser and pull server. You can use
2881 this for ad-hoc sharing and browing of repositories. It is
2882 recommended to use a real web server to serve a repository for
2883 longer periods of time.
2881 2884
2882 By default, the server logs accesses to stdout and errors to 2885 By default, the server logs accesses to stdout and errors to
2883 stderr. Use the -A/--accesslog and -E/--errorlog options to log to 2886 stderr. Use the -A/--accesslog and -E/--errorlog options to log to
2884 files. 2887 files.
2885 """ 2888 """